]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: tests: use standard error message after path allocation failure
authorDavid Sterba <dsterba@suse.com>
Fri, 15 Mar 2019 16:28:46 +0000 (17:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:26 +0000 (19:02 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-buffer-tests.c
fs/btrfs/tests/free-space-tree-tests.c
fs/btrfs/tests/qgroup-tests.c

index dc2582554cf05c62bb36faa1ec769bb834f0ac6d..a1b9f9b5978ede90d5d5afd2a3a60b743849f389 100644 (file)
@@ -43,7 +43,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("could not allocate path");
+               test_std_err(TEST_ALLOC_PATH);
                ret = -ENOMEM;
                goto out;
        }
index 58fbca92dd0de8f87cedbfa9fce4fefc6b0afeae..22282c16c0229b87ed3d154c61a44ac09a2f51d6 100644 (file)
@@ -486,7 +486,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("couldn't allocate path");
+               test_std_err(TEST_ALLOC_ROOT);
                ret = -ENOMEM;
                goto out;
        }
index 7e25a3a9f9799377109b52a9dfe0b900e29d9072..c85e4b955939507b5514f2375bacec70bd20f233 100644 (file)
@@ -32,7 +32,7 @@ static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr,
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("couldn't allocate path");
+               test_std_err(TEST_ALLOC_ROOT);
                return -ENOMEM;
        }
 
@@ -82,7 +82,7 @@ static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes,
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("couldn't allocate path");
+               test_std_err(TEST_ALLOC_ROOT);
                return -ENOMEM;
        }
 
@@ -132,7 +132,7 @@ static int remove_extent_item(struct btrfs_root *root, u64 bytenr,
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("couldn't allocate path");
+               test_std_err(TEST_ALLOC_ROOT);
                return -ENOMEM;
        }
        path->leave_spinning = 1;
@@ -166,7 +166,7 @@ static int remove_extent_ref(struct btrfs_root *root, u64 bytenr,
 
        path = btrfs_alloc_path();
        if (!path) {
-               test_err("couldn't allocate path");
+               test_std_err(TEST_ALLOC_ROOT);
                return -ENOMEM;
        }