diff options
author | Mahendran Ganesh <opensource.ganesh@gmail.com> | 2014-12-12 19:57:15 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:50 -0500 |
commit | dd01d7d89a0c492821c6db005c21e68258a833fc (patch) | |
tree | f525a9d3a460835a6a6e6222f08c53606f73438b /mm/zswap.c | |
parent | 083914eab96fabddfc715f0436e082eb375c5704 (diff) |
mm/zswap: add __init to some functions in zswap
zswap_cpu_init/zswap_comp_exit/zswap_entry_cache_create is only called by
__init init_zswap()
Signed-off-by: Mahendran Ganesh <opensource.ganesh@gmail.com>
Cc: Seth Jennings <sjennings@variantweb.net>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
-rw-r--r-- | mm/zswap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index c1543061a192..c162a2e6cc51 100644 --- a/mm/zswap.c +++ b/mm/zswap.c | |||
@@ -149,7 +149,7 @@ static int __init zswap_comp_init(void) | |||
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
151 | 151 | ||
152 | static void zswap_comp_exit(void) | 152 | static void __init zswap_comp_exit(void) |
153 | { | 153 | { |
154 | /* free percpu transforms */ | 154 | /* free percpu transforms */ |
155 | if (zswap_comp_pcpu_tfms) | 155 | if (zswap_comp_pcpu_tfms) |
@@ -206,7 +206,7 @@ static struct zswap_tree *zswap_trees[MAX_SWAPFILES]; | |||
206 | **********************************/ | 206 | **********************************/ |
207 | static struct kmem_cache *zswap_entry_cache; | 207 | static struct kmem_cache *zswap_entry_cache; |
208 | 208 | ||
209 | static int zswap_entry_cache_create(void) | 209 | static int __init zswap_entry_cache_create(void) |
210 | { | 210 | { |
211 | zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); | 211 | zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); |
212 | return zswap_entry_cache == NULL; | 212 | return zswap_entry_cache == NULL; |
@@ -389,7 +389,7 @@ static struct notifier_block zswap_cpu_notifier_block = { | |||
389 | .notifier_call = zswap_cpu_notifier | 389 | .notifier_call = zswap_cpu_notifier |
390 | }; | 390 | }; |
391 | 391 | ||
392 | static int zswap_cpu_init(void) | 392 | static int __init zswap_cpu_init(void) |
393 | { | 393 | { |
394 | unsigned long cpu; | 394 | unsigned long cpu; |
395 | 395 | ||