]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use temporary variable for space_info in btrfs_update_block_group
authorJosef Bacik <josef@toxicpanda.com>
Wed, 1 Mar 2023 21:14:43 +0000 (16:14 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Mar 2023 19:51:06 +0000 (20:51 +0100)
commitdf384da5a49cace5c5e3100803dfd563fd982f93
tree7085b5056715702253671c539e95990466916969
parentbf1f1fec2724a33b67ec12032402ea75f2a83622
btrfs: use temporary variable for space_info in btrfs_update_block_group

We do

  cache->space_info->counter += num_bytes;

everywhere in here.  This is makes the lines longer than they need to
be, and will be especially noticeable when we add the active tracking in,
so add a temp variable for the space_info so this is cleaner.

Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c