diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-08 17:19:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:18 -0400 |
commit | c119239b16e0a45ca303cdcb082733dc4de84a45 (patch) | |
tree | f20b499486732392cc6d242d2eae8cf385fad88d | |
parent | 6abb5a867ba0866cb21827b172cee6aa71244bd1 (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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-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 9da56af24df5..ea064c1a09ba 100644 --- a/mm/zswap.c +++ b/mm/zswap.c | |||
@@ -212,7 +212,7 @@ static int zswap_entry_cache_create(void) | |||
212 | return zswap_entry_cache == NULL; | 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 | kmem_cache_destroy(zswap_entry_cache); | 217 | kmem_cache_destroy(zswap_entry_cache); |
218 | } | 218 | } |
@@ -941,7 +941,7 @@ static int __init init_zswap(void) | |||
941 | pcpufail: | 941 | pcpufail: |
942 | zswap_comp_exit(); | 942 | zswap_comp_exit(); |
943 | compfail: | 943 | compfail: |
944 | zswap_entry_cache_destory(); | 944 | zswap_entry_cache_destroy(); |
945 | cachefail: | 945 | cachefail: |
946 | zpool_destroy_pool(zswap_pool); | 946 | zpool_destroy_pool(zswap_pool); |
947 | error: | 947 | error: |