Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
aa5d6bed
Commit
aa5d6bed
authored
Feb 28, 2007
by
Chris Mason
Committed by
David Woodhouse
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: return code checking
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
af86d07e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
269 additions
and
228 deletions
+269
-228
fs/btrfs/Makefile
fs/btrfs/Makefile
+4
-1
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+254
-226
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+5
-0
fs/btrfs/random-test.c
fs/btrfs/random-test.c
+6
-1
No files found.
fs/btrfs/Makefile
View file @
aa5d6bed
CC
=
gcc
CFLAGS
=
-g
-Wall
headers
=
radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
objects
=
ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
# if you don't have sparse installed, use ls instead
check
=
sparse
CHECKFLAGS
=
-D__linux__
-Dlinux
-D__STDC__
-Dunix
-D__unix__
-Wbitwise
\
-Wcontext
-Wcast-truncate
-Wuninitialized
-Wshadow
-Wundef
check
=
sparse
$(CHECKFLAGS)
#check=ls
.c.o
:
...
...
fs/btrfs/ctree.c
View file @
aa5d6bed
This diff is collapsed.
Click to expand it.
fs/btrfs/extent-tree.c
View file @
aa5d6bed
...
...
@@ -125,6 +125,11 @@ check_failed:
ins
->
flags
=
0
;
start_found
=
0
;
ret
=
search_slot
(
root
,
ins
,
&
path
,
0
);
if
(
ret
<
0
)
{
release_path
(
root
,
&
path
);
return
ret
;
}
while
(
1
)
{
l
=
&
path
.
nodes
[
0
]
->
leaf
;
slot
=
path
.
slots
[
0
];
...
...
fs/btrfs/random-test.c
View file @
aa5d6bed
...
...
@@ -134,7 +134,7 @@ static int lookup_enoent(struct ctree_root *root, struct radix_tree_root *radix)
return
ret
;
ret
=
search_slot
(
root
,
&
key
,
&
path
,
0
);
release_path
(
root
,
&
path
);
if
(
ret
=
=
0
)
if
(
ret
<
=
0
)
goto
error
;
return
0
;
error:
...
...
@@ -153,12 +153,17 @@ static int fill_radix(struct ctree_root *root, struct radix_tree_root *radix)
int
ret
;
int
slot
;
int
i
;
key
.
offset
=
0
;
key
.
flags
=
0
;
key
.
objectid
=
(
unsigned
long
)
-
1
;
while
(
1
)
{
init_path
(
&
path
);
ret
=
search_slot
(
root
,
&
key
,
&
path
,
0
);
if
(
ret
<
0
)
{
release_path
(
root
,
&
path
);
return
ret
;
}
slot
=
path
.
slots
[
0
];
if
(
ret
!=
0
)
{
if
(
slot
==
0
)
{
...
...
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