mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
btrfs: remove unused btrfs_io_stripe::length
First added (but not effectively used) in02c372e1f0("btrfs: add support for inserting raid stripe extents"). The structure is initialized to zeros so the only use in btrfs_insert_one_raid_extent() u64 length = bioc->stripes[i].length; struct btrfs_raid_stride *raid_stride = &stripe_extent->strides[i]; if (length == 0) length = bioc->size; the 'if' always happens. Last use in4016358e85("btrfs: remove unused variable length in btrfs_insert_one_raid_extent()") was an obvious cleanup. It seems to be safe to remove, raid-stripe-tree works without using it since 6.6. This was found by tool https://github.com/jirislaby/clang-struct . Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
2d44a15afd
commit
d4d788a776
|
|
@ -473,7 +473,6 @@ struct btrfs_io_stripe {
|
|||
struct btrfs_device *dev;
|
||||
/* Block mapping. */
|
||||
u64 physical;
|
||||
u64 length;
|
||||
bool rst_search_commit_root;
|
||||
/* For the endio handler. */
|
||||
struct btrfs_io_context *bioc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user