summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-02-27 11:43:13 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 19:40:10 +0100
commita3ebfe4fd89794df8b2f357ac5f665052e74b4f9 (patch)
tree2c68a2f5fde20c5da9551560726c9a5263ce213c /fs/f2fs
parentf2fs: fix memory leak of write_io_dummy mempool during umount (diff)
downloadlinux-a3ebfe4fd89794df8b2f357ac5f665052e74b4f9.tar.xz
linux-a3ebfe4fd89794df8b2f357ac5f665052e74b4f9.zip
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/f2fs')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 53305880c455..7571eb297b21 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1929,7 +1929,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;
}