Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245632
b: refs/heads/master
c: 88d19cf
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz committed Apr 26, 2011
1 parent cc41f4e commit d8b0f5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 304529b1b6f8612ccbb4582e997051b48b94f4a4
refs/heads/master: 88d19cf37952a7e1e38b2bf87a00f0e857e63180
8 changes: 8 additions & 0 deletions trunk/include/linux/rbtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ static inline void rb_set_color(struct rb_node *rb, int color)
#define RB_EMPTY_NODE(node) (rb_parent(node) == node)
#define RB_CLEAR_NODE(node) (rb_set_parent(node, node))

static inline void rb_init_node(struct rb_node *rb)
{
rb->rb_parent_color = 0;
rb->rb_right = NULL;
rb->rb_left = NULL;
RB_CLEAR_NODE(rb);
}

extern void rb_insert_color(struct rb_node *, struct rb_root *);
extern void rb_erase(struct rb_node *, struct rb_root *);

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/timerqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)

static inline void timerqueue_init(struct timerqueue_node *node)
{
RB_CLEAR_NODE(&node->node);
rb_init_node(&node->node);
}

static inline void timerqueue_init_head(struct timerqueue_head *head)
Expand Down

0 comments on commit d8b0f5f

Please sign in to comment.