diff options
| author | Chao Yu <yuchao0@huawei.com> | 2017-02-27 18:43:13 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:35:06 +0200 |
| commit | 33708f83cb28d76fc32678d1aa32c491cdffb161 (patch) | |
| tree | 326e2c04a6841fba01dcb0c8627c975d2c626324 /fs | |
| parent | 396f50c70e2c97e725542689cab57a879c089f67 (diff) | |
f2fs: fix to enlarge size of write_io_dummy mempool
It needs to double cache size of write_io_dummy mempool, otherwise we may
run out of cache in scenraio of Data/Node IOs were issued concurrently.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ce8a6bc1c..d7bc19507 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1915,7 +1915,7 @@ try_onemore: if (F2FS_IO_SIZE(sbi) > 1) { sbi->write_io_dummy = - mempool_create_page_pool(F2FS_IO_SIZE(sbi) - 1, 0); + mempool_create_page_pool(2 * (F2FS_IO_SIZE(sbi) - 1), 0); if (!sbi->write_io_dummy) goto free_options; } |
