git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
jffs2
/
nodelist.h
diff --git
a/fs/jffs2/nodelist.h
b/fs/jffs2/nodelist.h
index
0ddfd70
..
4178b4b
100644
(file)
--- a/
fs/jffs2/nodelist.h
+++ b/
fs/jffs2/nodelist.h
@@
-294,23
+294,21
@@
static inline int jffs2_encode_dev(union jffs2_device_node *jdev, dev_t rdev)
static inline struct jffs2_node_frag *frag_first(struct rb_root *root)
{
static inline struct jffs2_node_frag *frag_first(struct rb_root *root)
{
- struct rb_node *node = r
oot->rb_node
;
+ struct rb_node *node = r
b_first(root)
;
if (!node)
return NULL;
if (!node)
return NULL;
- while(node->rb_left)
- node = node->rb_left;
+
return rb_entry(node, struct jffs2_node_frag, rb);
}
static inline struct jffs2_node_frag *frag_last(struct rb_root *root)
{
return rb_entry(node, struct jffs2_node_frag, rb);
}
static inline struct jffs2_node_frag *frag_last(struct rb_root *root)
{
- struct rb_node *node = r
oot->rb_node
;
+ struct rb_node *node = r
b_last(root)
;
if (!node)
return NULL;
if (!node)
return NULL;
- while(node->rb_right)
- node = node->rb_right;
+
return rb_entry(node, struct jffs2_node_frag, rb);
}
return rb_entry(node, struct jffs2_node_frag, rb);
}