summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/recovery.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 12:26:54 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-16 10:31:39 +0300
commitc839e29768059c56ef233586e66a2a66edbe93a3 (patch)
treef4db1482edce7ccfd37d0e701b7359427080722d /fs/ubifs/recovery.c
parent12346037a71809197b22e223c3a719190a26172d (diff)
downloadlinux-c839e29768059c56ef233586e66a2a66edbe93a3.tar.bz2
UBIFS: improve debugging messages
Print a bit more information is some recovery and replay paths. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/recovery.c')
-rw-r--r--fs/ubifs/recovery.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 3f41a0ce192b..42b4512c46b0 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -1140,12 +1140,11 @@ int ubifs_rcvry_gc_commit(struct ubifs_info *c)
struct ubifs_lprops lp;
int err;
+ dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs);
+
c->gc_lnum = -1;
- if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) {
- dbg_rcvry("no GC head: wbuf->lnum %d, wbuf->offs %d",
- wbuf->lnum, wbuf->offs);
+ if (wbuf->lnum == -1 || wbuf->offs == c->leb_size)
return grab_empty_leb(c);
- }
err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2);
if (err) {