Patchwork [5/5] UBIFS: fix debugging dump

login
register
mail settings
Submitter Artem Bityutskiy
Date Sept. 17, 2009, 12:19 p.m.
Message ID <1253189996-14191-6-git-send-email-dedekind@infradead.org>
Download mbox | patch
Permalink /patch/33775/
State Accepted
Commit e055f7e873d900925c222cf2d1ec955af4a9ca90
Headers show

Comments

Artem Bityutskiy - Sept. 17, 2009, 12:19 p.m.
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

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 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index fd3f07e..dbc093a 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -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);