]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: tests: do not ignore NULL extent maps for extent maps tests
authorFilipe Manana <fdmanana@suse.com>
Mon, 4 Dec 2023 16:20:25 +0000 (16:20 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 21:59:01 +0000 (22:59 +0100)
commiteca3aaec0de1e7059340f906a0741a68c1cf9e2b
tree5edf754ac11fdacfe990bce6d157e400a981ef3e
parentb30aa1c176ba86a035d40c2d2f12dc0e0f687e0e
btrfs: tests: do not ignore NULL extent maps for extent maps tests

Several of the extent map tests call btrfs_add_extent_mapping() which is
supposed to succeed and return an extent map through the pointer to
pointer argument. However the tests are deliberately ignoring a NULL
extent map, which is not expected to happen. So change the tests to error
out if a NULL extent map is found.

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