]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/zswap: delay the initialization of zswap
authorLiu Shixin <liushixin2@huawei.com>
Mon, 3 Apr 2023 12:13:18 +0000 (20:13 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:50 +0000 (16:02 -0700)
commitf1d3fc347435e9bb1f970726658965e9f36be179
tree3fdff4ec29bfb1505d02d38c95ba2a8adefb9fc5
parent9dd70da8589e4e844f3c35ddb105d32ebf78d653
mm/zswap: delay the initialization of zswap

Since some users may not use zswap, the zswap_pool is wasted.  Save memory
by delaying the initialization of zswap until enabled.

Link: https://lkml.kernel.org/r/20230403121318.1876082-4-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Cc: 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