diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 07:15:47 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 07:15:47 -0400 |
commit | 3b79673cfae93d0ed63eceb058bb26aba602a278 (patch) | |
tree | 2639f8783e4f3023f883e00de16f62a1a39a8c90 /fs/jffs2/nodelist.c | |
parent | 06c6764b5830798c39617b24497cade90451592f (diff) |
[JFFS2] Fix accounting error in jffs2_link_node_ref()
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>
Diffstat (limited to 'fs/jffs2/nodelist.c')
-rw-r--r-- | fs/jffs2/nodelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c index 9a6ced05f894..7d563f938b1c 100644 --- 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, | |||
1079 | 1079 | ||
1080 | case REF_OBSOLETE: | 1080 | case REF_OBSOLETE: |
1081 | c->dirty_size += len; | 1081 | c->dirty_size += len; |
1082 | jeb->used_size += len; | 1082 | jeb->dirty_size += len; |
1083 | break; | 1083 | break; |
1084 | } | 1084 | } |
1085 | c->free_size -= len; | 1085 | c->free_size -= len; |