]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: selftests: don't split RAID extents in half
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jan 2025 19:31:51 +0000 (20:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Jan 2025 14:52:30 +0000 (15:52 +0100)
commita0afdec2552cf1ae059d58c3ffaa83aae7ddbfe1
treef577aac7da226d1450f646653704e8685dc82f0e
parentd44d3d724bb24701546c92ed5f341736bc9d832e
btrfs: selftests: don't split RAID extents in half

The selftests for partially deleting the start or tail of RAID
stripe-extents split these extents in half.

This can hide errors in the calculation, so don't split the RAID
stripe-extents in half but delete the first or last 16K of the 64K
extents.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/raid-stripe-tree-tests.c