Messages in this thread | | | Date | Wed, 01 Oct 2008 09:20:33 +0530 | From | Balbir Singh <> | Subject | Re: [PATCH 2/4] memcg: set page->mapping NULL before uncharge |
| |
KAMEZAWA Hiroyuki wrote: > This patch tries to make page->mapping to be NULL before > mem_cgroup_uncharge_cache_page() is called. > > "page->mapping == NULL" is a good check for "whether the page is still > radix-tree or not". > This patch also adds BUG_ON() to mem_cgroup_uncharge_cache_page(); > > > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Looks good to me
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
-- Balbir
| |