X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=mm%2Fzsmalloc.c;h=7d816c2d74f9dcc94d9d67a8dd89f5dd8559880c;hb=b430d1fd6c7d22cc07e7c22a2ee1078667605313;hp=0a7f81aa2249c2c9925cceadd4737ec8c88bf259;hpb=8c4de9bc2041229fb778e0c47e32585b6f6b1d09;p=mirror_ubuntu-artful-kernel.git diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 0a7f81aa2249..7d816c2d74f9 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1703,7 +1703,6 @@ static struct page *isolate_source_page(struct size_class *class) static unsigned long __zs_compact(struct zs_pool *pool, struct size_class *class) { - int nr_to_migrate; struct zs_compact_control cc; struct page *src_page; struct page *dst_page = NULL; @@ -1714,8 +1713,6 @@ static unsigned long __zs_compact(struct zs_pool *pool, BUG_ON(!is_first_page(src_page)); - /* The goal is to migrate all live objects in source page */ - nr_to_migrate = src_page->inuse; cc.index = 0; cc.s_page = src_page; @@ -1730,7 +1727,6 @@ static unsigned long __zs_compact(struct zs_pool *pool, putback_zspage(pool, class, dst_page); nr_total_migrated += cc.nr_migrated; - nr_to_migrate -= cc.nr_migrated; } /* Stop if we couldn't find slot */