Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
c119239b 6abb5a86

+2 -2
+2 -2
mm/zswap.c
··· 212 212 return zswap_entry_cache == NULL; 213 213 } 214 214 215 - static void zswap_entry_cache_destory(void) 215 + static void __init zswap_entry_cache_destroy(void) 216 216 { 217 217 kmem_cache_destroy(zswap_entry_cache); 218 218 } ··· 941 941 pcpufail: 942 942 zswap_comp_exit(); 943 943 compfail: 944 - zswap_entry_cache_destory(); 944 + zswap_entry_cache_destroy(); 945 945 cachefail: 946 946 zpool_destroy_pool(zswap_pool); 947 947 error: