Btrfs: make test_find_first_clear_extent_bit fail on incorrect results
authorFilipe Manana <fdmanana@suse.com>
Mon, 5 Aug 2019 09:57:41 +0000 (10:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:05 +0000 (14:59 +0200)
commit202f64ef427cce8478d9cfc1a96970db066b1ece
tree2bbbea5820e6118c82414fba4312bf60df06fd96
parentcdf52bd9fe28d0ea93fb9f5d96ae59aec1148b69
Btrfs: make test_find_first_clear_extent_bit fail on incorrect results

If any call to find_first_clear_extent_bit() returns an unexpected result,
the test should fail and not just print an error message, otherwise it
makes detection of regressions much harder to notice.

Fixes: 1eaebb341d2b41 ("btrfs: Don't trim returned range based on input value in find_first_clear_extent_bit")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c