Skip to content

Commit

Permalink
[JFFS2] Fix accounting error in jffs2_link_node_ref()
Browse files Browse the repository at this point in the history
When filing REF_OBSOLETE nodes, we'd add their size to the global
'dirty_size' count, but then to the eraseblock's 'used_size' count.
That's not clever.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 22, 2006
1 parent 06c6764 commit 3b79673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/nodelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ void jffs2_link_node_ref(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,

case REF_OBSOLETE:
c->dirty_size += len;
jeb->used_size += len;
jeb->dirty_size += len;
break;
}
c->free_size -= len;
Expand Down

0 comments on commit 3b79673

Please sign in to comment.