From: Chao Yu Date: Mon, 27 Feb 2017 10:43:13 +0000 (+0800) Subject: f2fs: fix to enlarge size of write_io_dummy mempool X-Git-Tag: v5.15~11759^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3ebfe4fd89794df8b2f357ac5f665052e74b4f9;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 5330588..7571eb2 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; }