mbox series

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

Message ID 20220825142037.3214152-1-liushixin2@huawei.com (mailing list archive)
Headers show
Series Delay the initializaton of zswap | expand

Message

Liu Shixin Aug. 25, 2022, 2:20 p.m. UTC
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.

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 | 75 +++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 57 insertions(+), 18 deletions(-)