projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06c6764
)
[JFFS2] Fix accounting error in jffs2_link_node_ref()
author
David Woodhouse
<dwmw2@infradead.org>
Mon, 22 May 2006 11:15:47 +0000
(12:15 +0100)
committer
David Woodhouse
<dwmw2@infradead.org>
Mon, 22 May 2006 11:15:47 +0000
(12:15 +0100)
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>
fs/jffs2/nodelist.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/nodelist.c
b/fs/jffs2/nodelist.c
index 9a6ced05f894331202b897489565eeb53ab0bf65..7d563f938b1c52a820ebe98589f037180538af34 100644
(file)
--- a/
fs/jffs2/nodelist.c
+++ b/
fs/jffs2/nodelist.c
@@
-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;