Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: David Sterba <dsterba@suse.com>

+9 -8
+1 -1
fs/btrfs/tests/extent-buffer-tests.c
··· 36 36 37 37 root = btrfs_alloc_dummy_root(fs_info); 38 38 if (IS_ERR(root)) { 39 - test_err("could not allocate root"); 39 + test_std_err(TEST_ALLOC_ROOT); 40 40 ret = PTR_ERR(root); 41 41 goto out; 42 42 }
+1
fs/btrfs/tests/free-space-tests.c
··· 854 854 855 855 root = btrfs_alloc_dummy_root(fs_info); 856 856 if (IS_ERR(root)) { 857 + test_std_err(TEST_ALLOC_ROOT); 857 858 ret = PTR_ERR(root); 858 859 goto out; 859 860 }
+1 -1
fs/btrfs/tests/free-space-tree-tests.c
··· 451 451 452 452 root = btrfs_alloc_dummy_root(fs_info); 453 453 if (IS_ERR(root)) { 454 - test_err("couldn't allocate dummy root"); 454 + test_std_err(TEST_ALLOC_ROOT); 455 455 ret = PTR_ERR(root); 456 456 goto out; 457 457 }
+3 -3
fs/btrfs/tests/inode-tests.c
··· 244 244 245 245 root = btrfs_alloc_dummy_root(fs_info); 246 246 if (IS_ERR(root)) { 247 - test_err("couldn't allocate root"); 247 + test_std_err(TEST_ALLOC_ROOT); 248 248 goto out; 249 249 } 250 250 ··· 845 845 846 846 root = btrfs_alloc_dummy_root(fs_info); 847 847 if (IS_ERR(root)) { 848 - test_err("couldn't allocate root"); 848 + test_std_err(TEST_ALLOC_ROOT); 849 849 goto out; 850 850 } 851 851 ··· 941 941 942 942 root = btrfs_alloc_dummy_root(fs_info); 943 943 if (IS_ERR(root)) { 944 - test_err("couldn't allocate root"); 944 + test_std_err(TEST_ALLOC_ROOT); 945 945 goto out; 946 946 } 947 947
+3 -3
fs/btrfs/tests/qgroup-tests.c
··· 463 463 464 464 root = btrfs_alloc_dummy_root(fs_info); 465 465 if (IS_ERR(root)) { 466 - test_err("couldn't allocate root"); 466 + test_std_err(TEST_ALLOC_ROOT); 467 467 ret = PTR_ERR(root); 468 468 goto out; 469 469 } ··· 495 495 496 496 tmp_root = btrfs_alloc_dummy_root(fs_info); 497 497 if (IS_ERR(tmp_root)) { 498 - test_err("couldn't allocate a fs root"); 498 + test_std_err(TEST_ALLOC_ROOT); 499 499 ret = PTR_ERR(tmp_root); 500 500 goto out; 501 501 } ··· 510 510 511 511 tmp_root = btrfs_alloc_dummy_root(fs_info); 512 512 if (IS_ERR(tmp_root)) { 513 - test_err("couldn't allocate a fs root"); 513 + test_std_err(TEST_ALLOC_ROOT); 514 514 ret = PTR_ERR(tmp_root); 515 515 goto out; 516 516 }