summaryrefslogtreecommitdiff
path: root/fs/btrfs/tests/extent-io-tests.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-04-22 17:32:17 +0200
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:47 +0200
commitd4d788a776b49c1e8961104caa2b715bc49074af (patch)
treee1ae02372837b231a3ec59f4363af18a5802fb78 /fs/btrfs/tests/extent-io-tests.c
parent2d44a15afd4c6f80dd8ac10e710a28e54e5e15c2 (diff)
btrfs: remove unused btrfs_io_stripe::length
First added (but not effectively used) in 02c372e1f016e5 ("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 in 4016358e852861 ("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>
Diffstat (limited to 'fs/btrfs/tests/extent-io-tests.c')
0 files changed, 0 insertions, 0 deletions