UBIFS: fix debugging dump
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 17 Sep 2009 12:08:31 +0000 (15:08 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
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 fd3f07e2c71cd4bc48cfcee9e886dc90dbba1179..dbc093afd946c98fee961b68a0131054edbf5014 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);