summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-10-20 15:40:56 +0300
committerDavid Sterba <dsterba@suse.com>2025-11-25 00:15:58 +0300
commitec8022cd2656935bdf0be13110c1a27dfe154aaf (patch)
treec38d3bd6f0d3849fd236ade553318ce78a757296 /tools
parent585416766d2711d0bcc328f54bff392f5e865ffa (diff)
downloadlinux-ec8022cd2656935bdf0be13110c1a27dfe154aaf.tar.xz
btrfs: use local variable for space_info in pin_down_extent()
Instead of dereferencing the block group multiple times to access its space_info, use a local variable to shorten the code horizontal wise and make it easier to read. Also, while at it, also rename the block group argument from 'cache' to 'bg', as the cache name is confusing and it's from the old days where the block group structure was named as 'btrfs_block_group_cache'. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions