diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-17 10:58:06 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-07-17 10:58:06 +1000 |
commit | 2132bb074a86f3a5d1641978c1e9ff48202a2c85 (patch) | |
tree | 9b4a2bf953916e711e80bc737cf8101666a7246f /mm | |
parent | 6cb78db05cee631616786360043451b73b7a3320 (diff) |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/zswap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index 333d70c66093..900d2cd80f89 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -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: |