From 3ebc66c6758dd4b20b88b4497a90bb15cbca4489 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Fri, 21 Apr 2006 13:17:24 +0100 Subject: [PATCH] --- yaml --- r: 27936 b: refs/heads/master c: c569882b2e70a0c4eac99acdb39b493549041ba1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/eventpoll.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 34400918adac..a81a281c13d0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fed306f2baa170220b0299198a39c6be2a91bf19 +refs/heads/master: c569882b2e70a0c4eac99acdb39b493549041ba1 diff --git a/trunk/fs/eventpoll.c b/trunk/fs/eventpoll.c index 1b4491cdd115..2695337d4d64 100644 --- a/trunk/fs/eventpoll.c +++ b/trunk/fs/eventpoll.c @@ -337,20 +337,20 @@ static inline int ep_cmp_ffd(struct epoll_filefd *p1, /* Special initialization for the rb-tree node to detect linkage */ 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 */ static inline void ep_rb_erase(struct rb_node *n, struct rb_root *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 */ static inline int ep_rb_linked(struct rb_node *n) { - return n->rb_parent != n; + return rb_parent(n) != n; } /*