Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1663184
| From | Chao Yu <yuchao0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] f2fs: fix wrong error number of fill_super |
| Date | 2017-06-12 03:50 +0200 |
| Message-ID | <tRmEp-45C-7@gated-at.bofh.it> (permalink) |
| References | <tRmEp-45C-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fixes incorrect error number in error path of fill_super.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
fs/f2fs/super.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 1c05763616b2..b26ae4d648cb 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1945,6 +1945,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
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
@@ -2016,8 +2017,10 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
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 */
--
2.13.1.388.g69e6b9b4f4a9
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/4] f2fs: fix to show injection rate in ->show_options Chao Yu <yuchao0@huawei.com> - 2017-06-12 03:50 +0200 [PATCH 3/4] f2fs: fix incorrect document of batched_trim_sections Chao Yu <yuchao0@huawei.com> - 2017-06-12 03:50 +0200 [PATCH 4/4] f2fs: fix wrong error number of fill_super Chao Yu <yuchao0@huawei.com> - 2017-06-12 03:50 +0200 [PATCH 2/4] f2fs: fix to document fault injection option and sysfs file Chao Yu <yuchao0@huawei.com> - 2017-06-12 03:50 +0200
csiph-web