Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
770e0cc0
Commit
770e0cc0
authored
Mar 15, 2019
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: tests: use standard error message after path allocation failure
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
9e3d9f84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
fs/btrfs/tests/extent-buffer-tests.c
fs/btrfs/tests/extent-buffer-tests.c
+1
-1
fs/btrfs/tests/free-space-tree-tests.c
fs/btrfs/tests/free-space-tree-tests.c
+1
-1
fs/btrfs/tests/qgroup-tests.c
fs/btrfs/tests/qgroup-tests.c
+4
-4
No files found.
fs/btrfs/tests/extent-buffer-tests.c
View file @
770e0cc0
...
@@ -43,7 +43,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
...
@@ -43,7 +43,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"could not allocate path"
);
test_
std_err
(
TEST_ALLOC_PATH
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
...
fs/btrfs/tests/free-space-tree-tests.c
View file @
770e0cc0
...
@@ -486,7 +486,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
...
@@ -486,7 +486,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"couldn't allocate path"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
...
fs/btrfs/tests/qgroup-tests.c
View file @
770e0cc0
...
@@ -32,7 +32,7 @@ static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr,
...
@@ -32,7 +32,7 @@ static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr,
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"couldn't allocate path"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -82,7 +82,7 @@ static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes,
...
@@ -82,7 +82,7 @@ static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes,
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"couldn't allocate path"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -132,7 +132,7 @@ static int remove_extent_item(struct btrfs_root *root, u64 bytenr,
...
@@ -132,7 +132,7 @@ static int remove_extent_item(struct btrfs_root *root, u64 bytenr,
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"couldn't allocate path"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
path
->
leave_spinning
=
1
;
path
->
leave_spinning
=
1
;
...
@@ -166,7 +166,7 @@ static int remove_extent_ref(struct btrfs_root *root, u64 bytenr,
...
@@ -166,7 +166,7 @@ static int remove_extent_ref(struct btrfs_root *root, u64 bytenr,
path
=
btrfs_alloc_path
();
path
=
btrfs_alloc_path
();
if
(
!
path
)
{
if
(
!
path
)
{
test_
err
(
"couldn't allocate path"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment