diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-09-17 14:08:31 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-09-17 14:08:31 +0200 |
commit | e055f7e873d900925c222cf2d1ec955af4a9ca90 (patch) | |
tree | 9696d7bcf60f35140b10a2c0ecf421991623c430 /fs/ubifs | |
parent | UBIFS: improve lprops dump (diff) | |
download | linux-e055f7e873d900925c222cf2d1ec955af4a9ca90.tar.xz linux-e055f7e873d900925c222cf2d1ec955af4a9ca90.zip |
UBIFS: fix debugging dump
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index fd3f07e2c71c..dbc093afd946 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); |