diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/zsmalloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 2021df5eb891..4d0a063145ec 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c | |||
@@ -979,12 +979,11 @@ static bool can_merge(struct size_class *prev, int size, int pages_per_zspage) | |||
979 | */ | 979 | */ |
980 | struct zs_pool *zs_create_pool(gfp_t flags) | 980 | struct zs_pool *zs_create_pool(gfp_t flags) |
981 | { | 981 | { |
982 | int i, ovhd_size; | 982 | int i; |
983 | struct zs_pool *pool; | 983 | struct zs_pool *pool; |
984 | struct size_class *prev_class = NULL; | 984 | struct size_class *prev_class = NULL; |
985 | 985 | ||
986 | ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); | 986 | pool = kzalloc(sizeof(*pool), GFP_KERNEL); |
987 | pool = kzalloc(ovhd_size, GFP_KERNEL); | ||
988 | if (!pool) | 987 | if (!pool) |
989 | return NULL; | 988 | return NULL; |
990 | 989 | ||