Skip to content

Commit

Permalink
UBIFS: fix debugging dump
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Sep 17, 2009
1 parent be9e62a commit e055f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,10 @@ int dbg_check_space_info(struct ubifs_info *c)
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);
Expand Down

0 comments on commit e055f7e

Please sign in to comment.