提交 6a060db8 编写于 作者: D David Sterba

btrfs: tests: use standard error message after inode allocation failure

Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 770e0cc0
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册