mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 09:09:47 +02:00
btrfs: selftests: check for correct return value of failed lookup
Commit 5e72aabc1f ("btrfs: return ENODATA in case RST lookup fails")
changed btrfs_get_raid_extent_offset()'s return value to ENODATA in case
the RAID stripe-tree lookup failed.
Adjust the test cases which check for absence of a given range to check
for ENODATA as return value in this case.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
dc14ba1078
commit
d44d3d724b
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ static int test_front_delete(struct btrfs_trans_handle *trans)
|
|||
}
|
||||
|
||||
ret = btrfs_get_raid_extent_offset(fs_info, logical, &len, map_type, 0, &io_stripe);
|
||||
if (!ret) {
|
||||
if (ret != -ENODATA) {
|
||||
ret = -EINVAL;
|
||||
test_err("lookup of RAID extent [%llu, %llu] succeeded, should fail",
|
||||
logical, logical + SZ_32K);
|
||||
|
|
|
|||
Loading…
Reference in a new issue