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
41903fe6
Commit
41903fe6
authored
Feb 26, 2007
by
Chris Mason
Committed by
David Woodhouse
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: 32bit cleanups
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
7cf75962
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
fs/btrfs/print-tree.c
fs/btrfs/print-tree.c
+1
-1
fs/btrfs/random-test.c
fs/btrfs/random-test.c
+3
-2
No files found.
fs/btrfs/print-tree.c
View file @
41903fe6
...
...
@@ -43,7 +43,7 @@ void print_tree(struct ctree_root *root, struct tree_buffer *t)
print_leaf
((
struct
leaf
*
)
c
);
return
;
}
printf
(
"node %Lu level %d total ptrs %d free spc %
l
u
\n
"
,
t
->
blocknr
,
printf
(
"node %Lu level %d total ptrs %d free spc %u
\n
"
,
t
->
blocknr
,
node_level
(
c
->
header
.
flags
),
c
->
header
.
nritems
,
NODEPTRS_PER_BLOCK
-
c
->
header
.
nritems
);
fflush
(
stdout
);
...
...
fs/btrfs/random-test.c
View file @
41903fe6
...
...
@@ -40,15 +40,16 @@ static int ins_one(struct ctree_root *root, struct radix_tree_root *radix)
struct
key
key
;
int
ret
;
char
buf
[
128
];
unsigned
long
oid
;
init_path
(
&
path
);
ret
=
setup_key
(
radix
,
&
key
,
0
);
sprintf
(
buf
,
"str-%Lu
\n
"
,
key
.
objectid
);
ret
=
insert_item
(
root
,
&
key
,
buf
,
strlen
(
buf
));
if
(
ret
)
goto
error
;
oid
=
(
unsigned
long
)
key
.
objectid
;
radix_tree_preload
(
GFP_KERNEL
);
ret
=
radix_tree_insert
(
radix
,
key
.
objectid
,
(
void
*
)
key
.
objectid
);
ret
=
radix_tree_insert
(
radix
,
oid
,
(
void
*
)
oid
);
radix_tree_preload_end
();
if
(
ret
)
goto
error
;
...
...
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