From: KAMEZAWA Hiroyuki Date: Sun, 19 Oct 2008 03:28:09 +0000 (-0700) Subject: memcg: make page->mapping NULL before uncharge X-Git-Tag: v2.6.28-rc1~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7abea9630bc8ffc663a751e46680db25c4cdf8d;p=pandora-kernel.git memcg: make page->mapping NULL before uncharge 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 Reviewed-by: Daisuke Nishimura Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed