Skip to content

Commit

Permalink
mm/zswap.c: add __init to zswap_entry_cache_destroy()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Aug 8, 2014
1 parent 6abb5a8 commit c119239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/zswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static int zswap_entry_cache_create(void)
return zswap_entry_cache == NULL;
}

static void zswap_entry_cache_destory(void)
static void __init zswap_entry_cache_destroy(void)
{
kmem_cache_destroy(zswap_entry_cache);
}
Expand Down Expand Up @@ -941,7 +941,7 @@ static int __init init_zswap(void)
pcpufail:
zswap_comp_exit();
compfail:
zswap_entry_cache_destory();
zswap_entry_cache_destroy();
cachefail:
zpool_destroy_pool(zswap_pool);
error:
Expand Down

0 comments on commit c119239

Please sign in to comment.