> @@ -651,10 +758,11 @@
>               /* Avoid race with charge */
>               atomic_set(&pc->ref_cnt, 0);
>               if (clear_page_cgroup(page, pc) == pc) {
> +                     int active;
>                       css_put(&mem->css);
> +                     active = pc->flags & PAGE_CGROUP_FLAG_ACTIVE;
>                       res_counter_uncharge(&mem->res, PAGE_SIZE);
> -                     list_del_init(&pc->lru);
> -                     mem_cgroup_charge_statistics(mem, pc->flags, false);
> +                     __mem_cgroup_remove_list(pc);
>                       kfree(pc);
>               } else  /* being uncharged ? ...do relax */
>                       break;

'active' seems unused.

YAMAMOTO Takashi
_______________________________________________
Containers mailing list
[EMAIL PROTECTED]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to