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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:42 +0000 (12:10 +0200)
commitf5527b3b4d3dde57b15209694207f5e6d5b542e7
treea81e92af9c93f7a7ae0bc566cb6141d9293813c6
parentbd265f2061aa9d902f605942a3cb3920729c933f
btrfs: use temporary variable for space_info in btrfs_update_block_group

[ Upstream commit df384da5a49cace5c5e3100803dfd563fd982f93 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/block-group.c