Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45621
b: refs/heads/master
c: ea7415c
h: refs/heads/master
i:
  45619: 8d1ebb8
v: v3
  • Loading branch information
Akinobu Mita authored and David Woodhouse committed Oct 21, 2006
1 parent cb794fd commit dc8ce7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 29175778b07aa60e7f8030bd95d69f70070cc1f7
refs/heads/master: ea7415cca922389b4f3c0cf75e0af9fbf827880e
10 changes: 4 additions & 6 deletions trunk/fs/jffs2/nodelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct rb_node *node = root->rb_node;
struct rb_node *node = rb_first(root);

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)
{
struct rb_node *node = root->rb_node;
struct rb_node *node = rb_last(root);

if (!node)
return NULL;
while(node->rb_right)
node = node->rb_right;

return rb_entry(node, struct jffs2_node_frag, rb);
}

Expand Down

0 comments on commit dc8ce7f

Please sign in to comment.