Skip to content

Commit c119239

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent 6abb5a8 commit c119239

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mm/zswap.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static int zswap_entry_cache_create(void)
212212
return zswap_entry_cache == NULL;
213213
}
214214

215-
static void zswap_entry_cache_destory(void)
215+
static void __init zswap_entry_cache_destroy(void)
216216
{
217217
kmem_cache_destroy(zswap_entry_cache);
218218
}
@@ -941,7 +941,7 @@ static int __init init_zswap(void)
941941
pcpufail:
942942
zswap_comp_exit();
943943
compfail:
944-
zswap_entry_cache_destory();
944+
zswap_entry_cache_destroy();
945945
cachefail:
946946
zpool_destroy_pool(zswap_pool);
947947
error:

0 commit comments

Comments
 (0)