Commit 99e3e858 authored by Sheng Yong's avatar Sheng Yong Committed by Jaegeuk Kim

f2fs: correct return value type of f2fs_fill_super

Signed-off-by: default avatarSheng Yong <shengyong1@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent ab47036d
......@@ -1417,7 +1417,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
struct f2fs_sb_info *sbi;
struct f2fs_super_block *raw_super;
struct inode *root;
long err;
int err;
bool retry = true, need_fsck = false;
char *options = NULL;
int recovery, i, valid_super_block;
......@@ -1643,7 +1643,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
if (err < 0) {
need_fsck = true;
f2fs_msg(sb, KERN_ERR,
"Cannot recover all fsync data errno=%ld", err);
"Cannot recover all fsync data errno=%d", err);
goto free_kobj;
}
} else {
......@@ -1676,7 +1676,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
if (recovery) {
err = f2fs_commit_super(sbi, true);
f2fs_msg(sb, KERN_INFO,
"Try to recover %dth superblock, ret: %ld",
"Try to recover %dth superblock, ret: %d",
sbi->valid_super_block ? 1 : 2, err);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment