UBIFS: dump more in the lprops debugging check
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 6 May 2011 18:23:25 +0000 (21:23 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 07:31:39 +0000 (10:31 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/lprops.c

index 77c541b..667884f 100644 (file)
@@ -1108,6 +1108,10 @@ static int scan_check_cb(struct ubifs_info *c,
        sleb = ubifs_scan(c, lnum, 0, buf, 0);
        if (IS_ERR(sleb)) {
                ret = PTR_ERR(sleb);
+               if (ret == -EUCLEAN) {
+                       dbg_dump_lprops(c);
+                       dbg_dump_budg(c, &c->bi);
+               }
                goto out;
        }