Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27896
b: refs/heads/master
c: ddc58bd
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed May 27, 2006
1 parent 2abf39a commit 79e7459
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ba0251fe87ea560eb377917e06ba0b5b9ab89094
refs/heads/master: ddc58bd65ebe58c243e9f609384825df9ffd04ad
6 changes: 5 additions & 1 deletion trunk/fs/jffs2/wbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ static struct jffs2_raw_node_ref **jffs2_incore_replace_raw(struct jffs2_sb_info

switch (je16_to_cpu(node->u.nodetype)) {
case JFFS2_NODETYPE_INODE:
if (f->metadata && f->metadata->raw == raw) {
dbg_noderef("Will replace ->raw in f->metadata at %p\n", f->metadata);
return &f->metadata->raw;
}
frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset));
BUG_ON(!frag);
/* Find a frag which refers to the full_dnode we want to modify */
Expand All @@ -199,7 +203,6 @@ static struct jffs2_raw_node_ref **jffs2_incore_replace_raw(struct jffs2_sb_info
}
dbg_noderef("Will replace ->raw in full_dnode at %p\n", frag->node);
return &frag->node->raw;
break;

case JFFS2_NODETYPE_DIRENT:
for (fd = f->dents; fd; fd = fd->next) {
Expand All @@ -209,6 +212,7 @@ static struct jffs2_raw_node_ref **jffs2_incore_replace_raw(struct jffs2_sb_info
}
}
BUG();

default:
dbg_noderef("Don't care about replacing raw for nodetype %x\n",
je16_to_cpu(node->u.nodetype));
Expand Down

0 comments on commit 79e7459

Please sign in to comment.