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
abe60ba4
Commit
abe60ba4
authored
Jun 29, 2017
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: get fs_info from eb in btrfs_print_tree, remove argument
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
a4f78750
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
fs/btrfs/print-tree.c
fs/btrfs/print-tree.c
+4
-2
fs/btrfs/print-tree.h
fs/btrfs/print-tree.h
+1
-1
No files found.
fs/btrfs/print-tree.c
View file @
abe60ba4
...
@@ -320,14 +320,16 @@ void btrfs_print_leaf(struct extent_buffer *l)
...
@@ -320,14 +320,16 @@ void btrfs_print_leaf(struct extent_buffer *l)
}
}
}
}
void
btrfs_print_tree
(
struct
btrfs_fs_info
*
fs_info
,
struct
extent_buffer
*
c
)
void
btrfs_print_tree
(
struct
extent_buffer
*
c
)
{
{
struct
btrfs_fs_info
*
fs_info
;
int
i
;
u32
nr
;
int
i
;
u32
nr
;
struct
btrfs_key
key
;
struct
btrfs_key
key
;
int
level
;
int
level
;
if
(
!
c
)
if
(
!
c
)
return
;
return
;
fs_info
=
c
->
fs_info
;
nr
=
btrfs_header_nritems
(
c
);
nr
=
btrfs_header_nritems
(
c
);
level
=
btrfs_header_level
(
c
);
level
=
btrfs_header_level
(
c
);
if
(
level
==
0
)
{
if
(
level
==
0
)
{
...
@@ -361,7 +363,7 @@ void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c)
...
@@ -361,7 +363,7 @@ void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c)
if
(
btrfs_header_level
(
next
)
!=
if
(
btrfs_header_level
(
next
)
!=
level
-
1
)
level
-
1
)
BUG
();
BUG
();
btrfs_print_tree
(
fs_info
,
next
);
btrfs_print_tree
(
next
);
free_extent_buffer
(
next
);
free_extent_buffer
(
next
);
}
}
}
}
fs/btrfs/print-tree.h
View file @
abe60ba4
...
@@ -19,5 +19,5 @@
...
@@ -19,5 +19,5 @@
#ifndef __PRINT_TREE_
#ifndef __PRINT_TREE_
#define __PRINT_TREE_
#define __PRINT_TREE_
void
btrfs_print_leaf
(
struct
extent_buffer
*
l
);
void
btrfs_print_leaf
(
struct
extent_buffer
*
l
);
void
btrfs_print_tree
(
struct
btrfs_fs_info
*
fs_info
,
struct
extent_buffer
*
c
);
void
btrfs_print_tree
(
struct
extent_buffer
*
c
);
#endif
#endif
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