diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f5121d03be7c..2ae35677d802 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1399,11 +1399,6 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size) /* extra space in chunk to keep the handle */ size += ZS_HANDLE_SIZE; class = pool->size_class[get_size_class_index(size)]; - /* In huge class size, we store the handle into first_page->private */ - if (class->huge) { - size -= ZS_HANDLE_SIZE; - class = pool->size_class[get_size_class_index(size)]; - } spin_lock(&class->lock); first_page = find_get_zspage(class);