diff options
| -rw-r--r-- | mm/zsmalloc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index ded3672295d7..e24f7ccc5865 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c | |||
| @@ -1398,11 +1398,6 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size) | |||
| 1398 | /* extra space in chunk to keep the handle */ | 1398 | /* extra space in chunk to keep the handle */ |
| 1399 | size += ZS_HANDLE_SIZE; | 1399 | size += ZS_HANDLE_SIZE; |
| 1400 | class = pool->size_class[get_size_class_index(size)]; | 1400 | class = pool->size_class[get_size_class_index(size)]; |
| 1401 | /* In huge class size, we store the handle into first_page->private */ | ||
| 1402 | if (class->huge) { | ||
| 1403 | size -= ZS_HANDLE_SIZE; | ||
| 1404 | class = pool->size_class[get_size_class_index(size)]; | ||
| 1405 | } | ||
| 1406 | 1401 | ||
| 1407 | spin_lock(&class->lock); | 1402 | spin_lock(&class->lock); |
| 1408 | first_page = find_get_zspage(class); | 1403 | first_page = find_get_zspage(class); |
