f2fs: fix wrong error number of fill_super

This patch fixes incorrect error number in error path of fill_super.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2017-06-12 09:44:27 +08:00 committed by Jaegeuk Kim
parent 6f6d9fe2ab
commit 1727f31721
1 changed files with 4 additions and 1 deletions

View File

@ -1930,6 +1930,7 @@ try_onemore:
if (f2fs_sb_mounted_blkzoned(sb)) { if (f2fs_sb_mounted_blkzoned(sb)) {
f2fs_msg(sb, KERN_ERR, f2fs_msg(sb, KERN_ERR,
"Zoned block device support is not enabled\n"); "Zoned block device support is not enabled\n");
err = -EOPNOTSUPP;
goto free_sb_buf; goto free_sb_buf;
} }
#endif #endif
@ -2003,9 +2004,11 @@ try_onemore:
if (F2FS_IO_SIZE(sbi) > 1) { if (F2FS_IO_SIZE(sbi) > 1) {
sbi->write_io_dummy = sbi->write_io_dummy =
mempool_create_page_pool(2 * (F2FS_IO_SIZE(sbi) - 1), 0); mempool_create_page_pool(2 * (F2FS_IO_SIZE(sbi) - 1), 0);
if (!sbi->write_io_dummy) if (!sbi->write_io_dummy) {
err = -ENOMEM;
goto free_options; goto free_options;
} }
}
/* get an inode for meta space */ /* get an inode for meta space */
sbi->meta_inode = f2fs_iget(sb, F2FS_META_INO(sbi)); sbi->meta_inode = f2fs_iget(sb, F2FS_META_INO(sbi));