btrfs: removed unused variable length in btrfs_insert_one_raid_extent
PATCH 1/1 btrfs: removed unused variable length in btrfs_insert_one_raid_extent
From: Johannes Thumshirn <[email protected]>
Remove the variable length in btrfs_insert_one_raid_extent() as it is unused.
Signed-off-by Johannes Thumshirn <[email protected]>
--- fs/btrfs/raid-stripe-tree.c | 4 ---- 1 file changed, 4 deletions(-)
fs/btrfs/raid-stripe-tree.c +0 -4
@@ -199,12 +199,8 @@ int btrfs_insert_one_raid_extent(struct btrfs_trans_handle *trans,for (int i =0 ; i < num_stripes; i++) {u64 devid = bioc->stripes[i].dev->devid;u64 physical = bioc->stripes[i].physical; -u64 length = bioc->stripes[i].length;struct btrfs_raid_stride *raid_stride = &stripe_extent->strides[i]; -if (length ==0 ) - length = bioc->size; -btrfs_set_stack_raid_stride_devid (raid_stride, devid);btrfs_set_stack_raid_stride_physical (raid_stride, physical); }
Signature · 1 line
2.43.0
Quoted 7 lines · Johannes Thumshirn
From: Johannes Thumshirn <[email protected]>
Remove the variable length in
btrfs_insert_one_raid_extent()as it is unused.Signed-off-by Johannes Thumshirn <[email protected]>
Reviewed-by Filipe Manana <[email protected]>
Looks good, thanks.
Quoted 25 lines
--- fs/btrfs/raid-stripe-tree.c | 4 ---- 1 file changed, 4 deletions(-)fs/btrfs/raid-stripe-tree.c +0
-5@@ -199,12 +199,8 @@ int btrfs_insert_one_raid_extent(struct btrfs_trans_handle *trans,for (int i =0 ; i < num_stripes; i++) {u64 devid = bioc->stripes[i].dev->devid;u64 physical = bioc->stripes[i].physical; -u64 length = bioc->stripes[i].length;struct btrfs_raid_stride *raid_stride = &stripe_extent->strides[i]; -if (length ==0 ) - length = bioc->size; -btrfs_set_stack_raid_stride_devid (raid_stride, devid);btrfs_set_stack_raid_stride_physical (raid_stride, physical); } --2.43.0