Commit c119239b16e0a45ca303cdcb082733dc4de84a45
Committed by
Linus Torvalds
1 parent
6abb5a867b
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
mm/zswap.c
... | ... | @@ -212,7 +212,7 @@ |
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,7 +941,7 @@ |
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: |