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
c569882b
Commit
c569882b
authored
Apr 21, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RBTREE] Update eventpoll.c to use rb_parent() accessor macro.
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
fed306f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/eventpoll.c
fs/eventpoll.c
+3
-3
No files found.
fs/eventpoll.c
View file @
c569882b
...
@@ -337,20 +337,20 @@ static inline int ep_cmp_ffd(struct epoll_filefd *p1,
...
@@ -337,20 +337,20 @@ static inline int ep_cmp_ffd(struct epoll_filefd *p1,
/* Special initialization for the rb-tree node to detect linkage */
/* Special initialization for the rb-tree node to detect linkage */
static
inline
void
ep_rb_initnode
(
struct
rb_node
*
n
)
static
inline
void
ep_rb_initnode
(
struct
rb_node
*
n
)
{
{
n
->
rb_parent
=
n
;
rb_set_parent
(
n
,
n
)
;
}
}
/* Removes a node from the rb-tree and marks it for a fast is-linked check */
/* Removes a node from the rb-tree and marks it for a fast is-linked check */
static
inline
void
ep_rb_erase
(
struct
rb_node
*
n
,
struct
rb_root
*
r
)
static
inline
void
ep_rb_erase
(
struct
rb_node
*
n
,
struct
rb_root
*
r
)
{
{
rb_erase
(
n
,
r
);
rb_erase
(
n
,
r
);
n
->
rb_parent
=
n
;
rb_set_parent
(
n
,
n
)
;
}
}
/* Fast check to verify that the item is linked to the main rb-tree */
/* Fast check to verify that the item is linked to the main rb-tree */
static
inline
int
ep_rb_linked
(
struct
rb_node
*
n
)
static
inline
int
ep_rb_linked
(
struct
rb_node
*
n
)
{
{
return
n
->
rb_parent
!=
n
;
return
rb_parent
(
n
)
!=
n
;
}
}
/*
/*
...
...
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