diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-06-12 09:44:27 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-07-04 02:11:43 -0700 |
commit | 1727f317219bfc60a3e50306d67938ffedb17f8a (patch) | |
tree | 9136d2f9d8230ac8dcc304f183204517d9220a20 /fs/f2fs | |
parent | 6f6d9fe2ab3fc68d194b18f4d120443326ec524a (diff) | |
download | linux-stable-1727f317219bfc60a3e50306d67938ffedb17f8a.tar.gz linux-stable-1727f317219bfc60a3e50306d67938ffedb17f8a.tar.bz2 linux-stable-1727f317219bfc60a3e50306d67938ffedb17f8a.zip |
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2aa864eae522..227498064a8f 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1930,6 +1930,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 @@ -2003,8 +2004,10 @@ 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 */ |