mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
btrfs: tests: use standard error message after block group allocation failure
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6a060db85d
commit
3199366da7
@ -847,7 +847,7 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize)
|
|||||||
cache = btrfs_alloc_dummy_block_group(fs_info,
|
cache = btrfs_alloc_dummy_block_group(fs_info,
|
||||||
BITS_PER_BITMAP * sectorsize + PAGE_SIZE);
|
BITS_PER_BITMAP * sectorsize + PAGE_SIZE);
|
||||||
if (!cache) {
|
if (!cache) {
|
||||||
test_err("couldn't run the tests");
|
test_std_err(TEST_ALLOC_BLOCK_GROUP);
|
||||||
btrfs_free_dummy_fs_info(fs_info);
|
btrfs_free_dummy_fs_info(fs_info);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -473,7 +473,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
|
|||||||
|
|
||||||
cache = btrfs_alloc_dummy_block_group(fs_info, 8 * alignment);
|
cache = btrfs_alloc_dummy_block_group(fs_info, 8 * alignment);
|
||||||
if (!cache) {
|
if (!cache) {
|
||||||
test_err("couldn't allocate dummy block group cache");
|
test_std_err(TEST_ALLOC_BLOCK_GROUP);
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user