f2fs: compress: introduce page array slab cache
authorChao Yu <yuchao0@huawei.com>
Mon, 14 Sep 2020 09:05:13 +0000 (17:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Sep 2020 16:16:32 +0000 (09:16 -0700)
commit31083031709eea6530f0551d59eecdb2e68265ef
treedac54d5eb4d654411f6d0836155ead473e3755ec
parent3a22e9ac71585bcb7667e44641f1bbb25295f0ce
f2fs: compress: introduce page array slab cache

Add a per-sbi slab cache "f2fs_page_array_entry-%u:%u" for memory
allocation of page pointer array in compress context.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: Fix wrong memory allocation]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/f2fs/super.c