Browse Source

mm/zswap.c: add __init to zswap_entry_cache_destroy()

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Fabian Frederick 11 years ago
parent
commit
c119239b16
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mm/zswap.c

+ 2 - 2
mm/zswap.c

@@ -212,7 +212,7 @@ static int zswap_entry_cache_create(void)
 	return zswap_entry_cache == NULL;
 	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);
 	kmem_cache_destroy(zswap_entry_cache);
 }
 }
@@ -941,7 +941,7 @@ static int __init init_zswap(void)
 pcpufail:
 pcpufail:
 	zswap_comp_exit();
 	zswap_comp_exit();
 compfail:
 compfail:
-	zswap_entry_cache_destory();
+	zswap_entry_cache_destroy();
 cachefail:
 cachefail:
 	zpool_destroy_pool(zswap_pool);
 	zpool_destroy_pool(zswap_pool);
 error:
 error: