Re: [bug][mmtom] memcg: MEM_CGROUP_ZSTAT underflow

From: KAMEZAWA Hiroyuki
Date: Fri Dec 19 2008 - 04:41:29 EST


On Fri, 19 Dec 2008 18:29:29 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:

> + /*
> + * Don't clear pc->mem_cgroup because del_from_lru() will see this.
> + * The fully unchaged page is assumed to be freed after us, so it's
> + * safe. When this page is reused before free, we have to be careful.
> + * (In SwapCache case...it can happen.)
> + */
>
Maybe this is better.
==
/*
* Don't clear pc->mem_cgroup because del_from_lru() may see this.
* If this page is fully unchaged, it's assumed to be freed soon,or it
* is isolated from LRU. When this page is reused before free
* (and on LRU), we have to be careful.
* (In SwapCache case...it can happen.)
*/
==
Hmm.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/