From 80be592236e97630562d155d4fc9e8ce7f86884f Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 25 Aug 2022 18:59:19 -0700 Subject: [PATCH] mm-zswap-delay-the-initializaton-of-zswap-until-the-first-enablement-fix s/init_zswap/zswap_init/ Cc: Liu Shixin Cc: Dan Streetman Cc: Seth Jennings Cc: Vitaly Wool Signed-off-by: Andrew Morton --- mm/zswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index 90df72aceb08..4c476c463035 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -1556,7 +1556,7 @@ cache_fail: return -ENOMEM; } -static int __init init_zswap(void) +static int __init zswap_init(void) { /* skip init if zswap is disabled when system startup */ if (!zswap_enabled) @@ -1565,7 +1565,7 @@ static int __init init_zswap(void) } /* must be late so crypto has time to come up */ -late_initcall(init_zswap); +late_initcall(zswap_init); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Seth Jennings "); -- 2.50.1