forked from luck/tmp_suning_uos_patched
btrfs: tests: use standard error message after inode allocation failure
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
770e0cc040
commit
6a060db85d
|
@ -73,7 +73,7 @@ static int test_find_delalloc(u32 sectorsize)
|
|||
|
||||
inode = btrfs_new_test_inode();
|
||||
if (!inode) {
|
||||
test_err("failed to allocate test inode");
|
||||
test_std_err(TEST_ALLOC_INODE);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
|
|||
|
||||
inode = btrfs_new_test_inode();
|
||||
if (!inode) {
|
||||
test_err("couldn't allocate inode");
|
||||
test_std_err(TEST_ALLOC_INODE);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -829,7 +829,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
|
|||
|
||||
inode = btrfs_new_test_inode();
|
||||
if (!inode) {
|
||||
test_err("couldn't allocate inode");
|
||||
test_std_err(TEST_ALLOC_INODE);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -929,7 +929,7 @@ static int test_extent_accounting(u32 sectorsize, u32 nodesize)
|
|||
|
||||
inode = btrfs_new_test_inode();
|
||||
if (!inode) {
|
||||
test_err("couldn't allocate inode");
|
||||
test_std_err(TEST_ALLOC_INODE);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user