diff options
author | Liu Shixin <liushixin2@huawei.com> | 2023-04-03 15:13:18 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-04-19 02:29:48 +0300 |
commit | 141fdeececb3d7b782ea7361a22659775d53bc2a (patch) | |
tree | 21421a59991531bd16e0144a8cf3c6c52183df60 /mm/kfence/report.c | |
parent | 9021ccec60f2d86b84080a7e262c91ea99495eaa (diff) | |
download | linux-141fdeececb3d7b782ea7361a22659775d53bc2a.tar.xz |
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.
[liushixin2@huawei.com: fix some pattern problem suggested by Christoph]
Link: https://lkml.kernel.org/r/20230411093632.822290-4-liushixin2@huawei.com
Link: https://lkml.kernel.org/r/20230403121318.1876082-4-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>
Diffstat (limited to 'mm/kfence/report.c')
0 files changed, 0 insertions, 0 deletions