]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[JFFS2] Fix accounting error in jffs2_link_node_ref()
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 22 May 2006 11:15:47 +0000 (12:15 +0100)
committerDavid 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

index 9a6ced05f894331202b897489565eeb53ab0bf65..7d563f938b1c52a820ebe98589f037180538af34 100644 (file)
@@ -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;