btrfs: tests: add extent_map tests for dropping with odd layouts
authorJosef Bacik <josef@toxicpanda.com>
Thu, 17 Aug 2023 20:57:31 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:54:49 +0000 (14:54 +0200)
commit89c3760428db0342edf2747240419c9b34db3485
tree6f4998e6b297486ea27d232f46e26435167e7864
parent4fe44f9d0472579f69b44001787f2316e4541217
btrfs: tests: add extent_map tests for dropping with odd layouts

While investigating weird problems with the extent_map I wrote a self
test testing the various edge cases of btrfs_drop_extent_map_range.
This can split in different ways and behaves different in each case, so
test the various edge cases to make sure everything is functioning
properly.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-map-tests.c