aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-11-21 13:38:39 +0000
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:02 +0100
commit71fca47b644910485c49d1da31bc963cf286fe77 (patch)
tree2369b3cde53f7bfd547283224b2e4e0e7c097264 /fs/btrfs/tests
parentbtrfs: use a dedicated data structure for chunk maps (diff)
downloadwireguard-linux-71fca47b644910485c49d1da31bc963cf286fe77.tar.xz
wireguard-linux-71fca47b644910485c49d1da31bc963cf286fe77.zip
btrfs: remove stripe size local variable from insert_dev_extents()
It's not needed to have a local variable to store the stripe size at insert_dev_extents(), we can just take from the chunk map as it's only used once and typing 'map->stripe_size' is not much more verbose than simply typing 'stripe_size'. So remove the local variable. This was added before the recent addition of a dedicated structure for chunk mappings because the stripe size was encoded in the 'orig_block_len' field of an extent_map structure, so the use of the local variable made things more readable. Reviewed-by: Josef Bacik <josef@toxicpanda.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 'fs/btrfs/tests')
0 files changed, 0 insertions, 0 deletions