diff options
author | 2023-11-21 13:38:39 +0000 | |
---|---|---|
committer | 2023-12-15 20:27:02 +0100 | |
commit | 71fca47b644910485c49d1da31bc963cf286fe77 (patch) | |
tree | 2369b3cde53f7bfd547283224b2e4e0e7c097264 /fs/btrfs/tests | |
parent | btrfs: use a dedicated data structure for chunk maps (diff) | |
download | wireguard-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