]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/zswap: remove zswap_entry_cache_{create,destroy} helper function
authorLiu Shixin <liushixin2@huawei.com>
Mon, 3 Apr 2023 12:13:16 +0000 (20:13 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:50 +0000 (16:02 -0700)
commit25f76780ec0b3e6c11a0f1b42b67f07df1b02fcc
tree39e3dc5633bcb13eb792576a3d3695e84999aa74
parent573fd95a029bb62b6f99282d50e5e66ff049ccc3
mm/zswap: remove zswap_entry_cache_{create,destroy} helper function

Patch series "Delay the initialization of zswap", v8.

In the initialization of zswap, about 18MB memory will be allocated for
zswap_pool.  Since some users may not use zswap, the zswap_pool is wasted.
Save memory by delaying the initialization of zswap until enabled.

This patch (of 3):

Remove zswap_entry_cache_create and zswap_entry_cache_destroy and use
kmem_cache_* function directly.

Link: https://lkml.kernel.org/r/20230403121318.1876082-1-liushixin2@huawei.com
Link: https://lkml.kernel.org/r/20230403121318.1876082-2-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c