提交 41214b3c 编写于 作者: C Chao Yu 提交者: Jaegeuk Kim

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: NChao Yu <chao2.yu@samsung.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 17d899df
...@@ -1502,8 +1502,10 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -1502,8 +1502,10 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
/* recover broken superblock */ /* recover broken superblock */
if (recovery && !f2fs_readonly(sb) && !bdev_read_only(sb->s_bdev)) { if (recovery && !f2fs_readonly(sb) && !bdev_read_only(sb->s_bdev)) {
f2fs_msg(sb, KERN_INFO, "Recover invalid superblock"); err = f2fs_commit_super(sbi, true);
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); f2fs_update_time(sbi, CP_TIME);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册