UBIFS: fix debugging dump
Artem Bityutskiy [Thu, 17 Sep 2009 12:08:31 +0000 (15:08 +0300)]
In 'dbg_check_space_info()' we want to dump current lprops statistics,
but actually dump old statistics. Fix this.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

fs/ubifs/debug.c

index fd3f07e..dbc093a 100644 (file)
@@ -1005,8 +1005,10 @@ out:
        ubifs_msg("saved lprops statistics dump");
        dbg_dump_lstats(&d->saved_lst);
        ubifs_get_lp_stats(c, &lst);
+
        ubifs_msg("current lprops statistics dump");
-       dbg_dump_lstats(&d->saved_lst);
+       dbg_dump_lstats(&lst);
+
        spin_lock(&c->space_lock);
        dbg_dump_budg(c);
        spin_unlock(&c->space_lock);