[Devel] Re: [PATCH 4/4] swapcgroup: modify vm_swap_full for cgroup

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Thu May 22 00:39:38 PDT 2008


On Thu, 22 May 2008 15:22:24 +0900
Daisuke Nishimura <nishimura at mxp.nes.nec.co.jp> wrote:

> +	mem = p->memcg[swp_offset(entry)];
> +	usage = swap_cgroup_read_usage(mem) / PAGE_SIZE;
> +	limit = swap_cgroup_read_limit(mem) / PAGE_SIZE;
> +	limit = (limit < total_swap_pages) ? limit : total_swap_pages;

mem can be NULL here.

Thanks,
-Kame

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list