Lines Matching refs:rb_node
65 struct rb_node rb_node;
69 static inline struct rb_node *rb_simple_search(struct rb_root *root, u64 bytenr)
71 struct rb_node *node = root->rb_node;
75 entry = rb_entry(node, struct rb_simple_node, rb_node);
93 * Return the rb_node that start at or after @bytenr. If there is no entry at
96 static inline struct rb_node *rb_simple_search_first(struct rb_root *root,
99 struct rb_node *node = root->rb_node, *ret = NULL;
103 entry = rb_entry(node, struct rb_simple_node, rb_node);
122 static inline struct rb_node *rb_simple_insert(struct rb_root *root, u64 bytenr,
123 struct rb_node *node)
125 struct rb_node **p = &root->rb_node;
126 struct rb_node *parent = NULL;
131 entry = rb_entry(parent, struct rb_simple_node, rb_node);