]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
UBIFS: print verbose message when rescanning a corrupted node
authorshengyong <shengyong1@huawei.com>
Wed, 23 Sep 2015 09:11:40 +0000 (09:11 +0000)
committerRichard Weinberger <richard@nod.at>
Sat, 3 Oct 2015 18:42:01 +0000 (20:42 +0200)
This is a trivial fix of showing verbose message when leb-recovery detects
a corrupted node, which is not the last one in the LEB. Rescan expects to
show more detail of the corrupted node.

Reviewed-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/recovery.c

index 695fc71d5244c6e0a24b2bb5ac80b9c72e421e28..2a1f0bc836be9df3398cf8a489a54be0a3bb4ec5 100644 (file)
@@ -789,7 +789,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
 corrupted_rescan:
        /* Re-scan the corrupted data with verbose messages */
        ubifs_err(c, "corruption %d", ret);
 corrupted_rescan:
        /* Re-scan the corrupted data with verbose messages */
        ubifs_err(c, "corruption %d", ret);
-       ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
+       ubifs_scan_a_node(c, buf, len, lnum, offs, 0);
 corrupted:
        ubifs_scanned_corruption(c, lnum, offs, buf);
        err = -EUCLEAN;
 corrupted:
        ubifs_scanned_corruption(c, lnum, offs, buf);
        err = -EUCLEAN;