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
9e3d9f84
Commit
9e3d9f84
authored
Mar 15, 2019
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: tests: use standard error message after extent buffer allocation failure
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
52ab7bca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 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/extent-io-tests.c
fs/btrfs/tests/extent-io-tests.c
+2
-2
fs/btrfs/tests/free-space-tree-tests.c
fs/btrfs/tests/free-space-tree-tests.c
+1
-1
fs/btrfs/tests/inode-tests.c
fs/btrfs/tests/inode-tests.c
+2
-2
No files found.
fs/btrfs/tests/extent-buffer-tests.c
View file @
9e3d9f84
...
@@ -50,7 +50,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
...
@@ -50,7 +50,7 @@ static int test_btrfs_split_item(u32 sectorsize, u32 nodesize)
path
->
nodes
[
0
]
=
eb
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
path
->
nodes
[
0
]
=
eb
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
if
(
!
eb
)
{
if
(
!
eb
)
{
test_
err
(
"could not allocate dummy buffer"
);
test_
std_err
(
TEST_ALLOC_EXTENT_BUFFER
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
...
fs/btrfs/tests/extent-io-tests.c
View file @
9e3d9f84
...
@@ -406,7 +406,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
...
@@ -406,7 +406,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
eb
=
__alloc_dummy_extent_buffer
(
fs_info
,
0
,
len
);
eb
=
__alloc_dummy_extent_buffer
(
fs_info
,
0
,
len
);
if
(
!
eb
)
{
if
(
!
eb
)
{
test_
err
(
"couldn't allocate test extent buffer"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
@@ -419,7 +419,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
...
@@ -419,7 +419,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
free_extent_buffer
(
eb
);
free_extent_buffer
(
eb
);
eb
=
__alloc_dummy_extent_buffer
(
NULL
,
nodesize
/
2
,
len
);
eb
=
__alloc_dummy_extent_buffer
(
NULL
,
nodesize
/
2
,
len
);
if
(
!
eb
)
{
if
(
!
eb
)
{
test_
err
(
"couldn't allocate test extent buffer"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
...
fs/btrfs/tests/free-space-tree-tests.c
View file @
9e3d9f84
...
@@ -463,7 +463,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
...
@@ -463,7 +463,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
root
->
node
=
alloc_test_extent_buffer
(
root
->
fs_info
,
nodesize
);
root
->
node
=
alloc_test_extent_buffer
(
root
->
fs_info
,
nodesize
);
if
(
!
root
->
node
)
{
if
(
!
root
->
node
)
{
test_
err
(
"couldn't allocate dummy buffer"
);
test_
std_err
(
TEST_ALLOC_EXTENT_BUFFER
);
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
out
;
goto
out
;
}
}
...
...
fs/btrfs/tests/inode-tests.c
View file @
9e3d9f84
...
@@ -250,7 +250,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
...
@@ -250,7 +250,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
root
->
node
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
root
->
node
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
if
(
!
root
->
node
)
{
if
(
!
root
->
node
)
{
test_
err
(
"couldn't allocate dummy buffer"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
goto
out
;
goto
out
;
}
}
...
@@ -851,7 +851,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
...
@@ -851,7 +851,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
root
->
node
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
root
->
node
=
alloc_dummy_extent_buffer
(
fs_info
,
nodesize
);
if
(
!
root
->
node
)
{
if
(
!
root
->
node
)
{
test_
err
(
"couldn't allocate dummy buffer"
);
test_
std_err
(
TEST_ALLOC_ROOT
);
goto
out
;
goto
out
;
}
}
...
...
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