Commit 1ee47165 authored by Minchan Kim's avatar Minchan Kim Committed by Linus Torvalds

zsmalloc: remove unused pool param in obj_free

Let's remove unused pool param in obj_free
Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 251cbb95
...@@ -1438,8 +1438,7 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size) ...@@ -1438,8 +1438,7 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size)
} }
EXPORT_SYMBOL_GPL(zs_malloc); EXPORT_SYMBOL_GPL(zs_malloc);
static void obj_free(struct zs_pool *pool, struct size_class *class, static void obj_free(struct size_class *class, unsigned long obj)
unsigned long obj)
{ {
struct link_free *link; struct link_free *link;
struct page *first_page, *f_page; struct page *first_page, *f_page;
...@@ -1485,7 +1484,7 @@ void zs_free(struct zs_pool *pool, unsigned long handle) ...@@ -1485,7 +1484,7 @@ void zs_free(struct zs_pool *pool, unsigned long handle)
class = pool->size_class[class_idx]; class = pool->size_class[class_idx];
spin_lock(&class->lock); spin_lock(&class->lock);
obj_free(pool, class, obj); obj_free(class, obj);
fullness = fix_fullness_group(class, first_page); fullness = fix_fullness_group(class, first_page);
if (fullness == ZS_EMPTY) { if (fullness == ZS_EMPTY) {
zs_stat_dec(class, OBJ_ALLOCATED, get_maxobj_per_zspage( zs_stat_dec(class, OBJ_ALLOCATED, get_maxobj_per_zspage(
...@@ -1648,7 +1647,7 @@ static int migrate_zspage(struct zs_pool *pool, struct size_class *class, ...@@ -1648,7 +1647,7 @@ static int migrate_zspage(struct zs_pool *pool, struct size_class *class,
free_obj |= BIT(HANDLE_PIN_BIT); free_obj |= BIT(HANDLE_PIN_BIT);
record_obj(handle, free_obj); record_obj(handle, free_obj);
unpin_tag(handle); unpin_tag(handle);
obj_free(pool, class, used_obj); obj_free(class, used_obj);
} }
/* Remember last position in this iteration */ /* Remember last position in this iteration */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment