projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6abb5a8
)
mm/zswap.c: add __init to zswap_entry_cache_destroy()
author
Fabian Frederick
<
[email protected]
>
Fri, 8 Aug 2014 21:19:35 +0000
(14:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 8 Aug 2014 22:57:18 +0000
(15:57 -0700)
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 <
[email protected]
>
Acked-by: Seth Jennings <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/zswap.c
patch
|
blob
|
history
diff --git
a/mm/zswap.c
b/mm/zswap.c
index 9da56af24df52252eea58d115ac550c1c2c8280f..ea064c1a09ba79003a5ed5e8990d1ce44f2e6122 100644
(file)
--- a/
mm/zswap.c
+++ b/
mm/zswap.c
@@
-212,7
+212,7
@@
static int zswap_entry_cache_create(void)
return zswap_entry_cache == NULL;
}
-static void
zswap_entry_cache_destor
y(void)
+static void
__init zswap_entry_cache_destro
y(void)
{
kmem_cache_destroy(zswap_entry_cache);
}
@@
-941,7
+941,7
@@
static int __init init_zswap(void)
pcpufail:
zswap_comp_exit();
compfail:
- zswap_entry_cache_dest
or
y();
+ zswap_entry_cache_dest
ro
y();
cachefail:
zpool_destroy_pool(zswap_pool);
error: