Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
51af2575
Commit
51af2575
authored
Apr 09, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kcmp: Generalize tree showing code
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
817b13fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
file-ids.c
file-ids.c
+8
-3
No files found.
file-ids.c
View file @
51af2575
...
...
@@ -131,11 +131,11 @@ static void show_node(struct rb_node *node)
pr_info
(
"
\t
--s
\n
"
);
}
void
fd_id_show_tree
(
void
)
static
void
kid_show_tree
(
struct
kid_tree
*
tree
)
{
struct
rb_root
*
root
=
&
fd_tree
.
root
;
struct
rb_root
*
root
=
&
tree
->
root
;
pr_info
(
"
\t
Tree of
file IDs
\n
"
);
pr_info
(
"
\t
Tree of
%d objects
\n
"
,
tree
->
kcmp_type
);
if
(
root
->
rb_node
)
show_node
(
root
->
rb_node
);
}
...
...
@@ -228,6 +228,11 @@ static u32 kid_generate_gen(struct kid_tree *tree,
}
void
fd_id_show_tree
(
void
)
{
kid_show_tree
(
&
fd_tree
);
}
u32
fd_id_generate_special
(
void
)
{
return
fd_tree
.
subid
++
;
...
...
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