From: Chao Yu Date: Mon, 22 Feb 2016 10:33:20 +0000 (+0800) Subject: f2fs: show more info about superblock recovery X-Git-Tag: v4.14-rc1~3584^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41214b3c77e0960620d3de8465c4240f092f90a6;p=platform%2Fkernel%2Flinux-rpi.git f2fs: show more info about superblock recovery This patch changes to show more info in message log about the recovery of the corrupted superblock during ->mount, e.g. the index of corrupted superblock and the result of recovery. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ebe59703..2a5fc08 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1502,8 +1502,10 @@ try_onemore: /* recover broken superblock */ if (recovery && !f2fs_readonly(sb) && !bdev_read_only(sb->s_bdev)) { - f2fs_msg(sb, KERN_INFO, "Recover invalid superblock"); - f2fs_commit_super(sbi, true); + err = f2fs_commit_super(sbi, true); + f2fs_msg(sb, KERN_INFO, + "Try to recover %dth superblock, ret: %ld", + sbi->valid_super_block ? 1 : 2, err); } f2fs_update_time(sbi, CP_TIME);