summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2016-05-20 19:59:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-20 20:58:30 -0400
commit1ee4716585ed80b7917ba3c5aa38e5e0d677d583 (patch)
tree1be9a9df0b5a9b7983594656e3b5c3dc1d59ecde /mm
parent251cbb951b831acd8451d75b40696834f07c29c5 (diff)
zsmalloc: remove unused pool param in obj_free
Let's remove unused pool param in obj_free Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/zsmalloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 18535abfad40..ae288c9f7156 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1438,8 +1438,7 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size)
1438} 1438}
1439EXPORT_SYMBOL_GPL(zs_malloc); 1439EXPORT_SYMBOL_GPL(zs_malloc);
1440 1440
1441static void obj_free(struct zs_pool *pool, struct size_class *class, 1441static void obj_free(struct size_class *class, unsigned long obj)
1442 unsigned long obj)
1443{ 1442{
1444 struct link_free *link; 1443 struct link_free *link;
1445 struct page *first_page, *f_page; 1444 struct page *first_page, *f_page;
@@ -1485,7 +1484,7 @@ void zs_free(struct zs_pool *pool, unsigned long handle)
1485 class = pool->size_class[class_idx]; 1484 class = pool->size_class[class_idx];
1486 1485
1487 spin_lock(&class->lock); 1486 spin_lock(&class->lock);
1488 obj_free(pool, class, obj); 1487 obj_free(class, obj);
1489 fullness = fix_fullness_group(class, first_page); 1488 fullness = fix_fullness_group(class, first_page);
1490 if (fullness == ZS_EMPTY) { 1489 if (fullness == ZS_EMPTY) {
1491 zs_stat_dec(class, OBJ_ALLOCATED, get_maxobj_per_zspage( 1490 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 free_obj |= BIT(HANDLE_PIN_BIT); 1647 free_obj |= BIT(HANDLE_PIN_BIT);
1649 record_obj(handle, free_obj); 1648 record_obj(handle, free_obj);
1650 unpin_tag(handle); 1649 unpin_tag(handle);
1651 obj_free(pool, class, used_obj); 1650 obj_free(class, used_obj);
1652 } 1651 }
1653 1652
1654 /* Remember last position in this iteration */ 1653 /* Remember last position in this iteration */