Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e109e2b0 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: fix wrong error number of fill_super



commit 1727f317219bfc60a3e50306d67938ffedb17f8a upstream.

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

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6fe48461
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1924,6 +1924,7 @@ try_onemore:
	if (f2fs_sb_mounted_blkzoned(sb)) {
		f2fs_msg(sb, KERN_ERR,
			 "Zoned block device support is not enabled\n");
		err = -EOPNOTSUPP;
		goto free_sb_buf;
	}
#endif
@@ -1997,9 +1998,11 @@ try_onemore:
	if (F2FS_IO_SIZE(sbi) > 1) {
		sbi->write_io_dummy =
			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;
		}
	}

	/* get an inode for meta space */
	sbi->meta_inode = f2fs_iget(sb, F2FS_META_INO(sbi));