]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/zswap.c: add __init to zswap_entry_cache_destroy()
authorFabian Frederick <fabf@skynet.be>
Thu, 26 Jun 2014 00:42:44 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:44 +0000 (10:42 +1000)
zswap_entry_cache_destroy() is only called by __init init_zswap().

This patch also fixes function name zswap_entry_cache_ s/destory/destroy

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Seth Jennings <sjennings@variantweb.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c

index 333d70c6609355b635c55c29bfffc3c21d2d2843..900d2cd80f89b2fc58fbef287c6ebf72c7d90cf0 100644 (file)
@@ -207,7 +207,7 @@ static int zswap_entry_cache_create(void)
        return zswap_entry_cache == NULL;
 }
 
-static void zswap_entry_cache_destory(void)
+static void __init zswap_entry_cache_destroy(void)
 {
        kmem_cache_destroy(zswap_entry_cache);
 }
@@ -926,7 +926,7 @@ static int __init init_zswap(void)
 pcpufail:
        zswap_comp_exit();
 compfail:
-       zswap_entry_cache_destory();
+       zswap_entry_cache_destroy();
 cachefail:
        zbud_destroy_pool(zswap_pool);
 error: