[PATCH -next v2 0/3] Delay the initializaton of zswap

Liu Shixin posted 3 patches 3 years, 7 months ago
There is a newer version of this series
mm/zswap.c | 77 ++++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 58 insertions(+), 19 deletions(-)
[PATCH -next v2 0/3] Delay the initializaton of zswap
Posted by Liu Shixin 3 years, 7 months ago
In the initialization of zswap, about 18MB memory will be allocated for       
zswap_pool. Since not all users use zswap, the memory may be wasted. Save  
the memory for these users by delaying the initialization of zswap to         
first enablement.

v1->v2: Change init_zswap to zswap_init suggested by Andrew.

Liu Shixin (3):
  mm/zswap: replace zswap_init_{started/failed} with zswap_init_state
  mm/zswap: delay the initializaton of zswap until the first enablement
  mm/zswap: skip confusing print info

 mm/zswap.c | 77 ++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 58 insertions(+), 19 deletions(-)

-- 
2.25.1