]> Git Repo - linux.git/commit
mm/zswap: delay the initialization of zswap
authorLiu Shixin <[email protected]>
Mon, 3 Apr 2023 12:13:18 +0000 (20:13 +0800)
committerAndrew Morton <[email protected]>
Tue, 18 Apr 2023 23:29:48 +0000 (16:29 -0700)
commit141fdeececb3d7b782ea7361a22659775d53bc2a
tree21421a59991531bd16e0144a8cf3c6c52183df60
parent9021ccec60f2d86b84080a7e262c91ea99495eaa
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.

[[email protected]: fix some pattern problem suggested by Christoph]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Shixin <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Vitaly Wool <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/zswap.c
This page took 0.049315 seconds and 4 git commands to generate.