f2fs: compress: delay temp page allocation
authorChao Yu <yuchao0@huawei.com>
Sat, 25 Jul 2020 01:17:48 +0000 (09:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 26 Jul 2020 15:20:16 +0000 (08:20 -0700)
commitb2f57a8e6bc987ba2c8defb507c98aff66c94fc5
treeb2cfdf80105b312c2b554fd1d30a74d0f04f20be
parent944dd22ea4475bd11180fd2f431a4a547ca4d8f5
f2fs: compress: delay temp page allocation

Currently, we allocate temp pages which is used to pad hole in
cluster during read IO submission, it may take long time before
releasing them in f2fs_decompress_pages(), since they are only
used as temp output buffer in decompression context, so let's
just do the allocation in that context to reduce time of memory
pool resource occupation.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c