From: Hugh Dickins Date: Mon, 14 Mar 2011 08:08:47 +0000 (-0700) Subject: thp+memcg-numa: fix BUG at include/linux/mm.h:370! X-Git-Tag: v2.6.38~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fbfac4e053861925fa3fffcdc327649b09af54c;p=pandora-kernel.git thp+memcg-numa: fix BUG at include/linux/mm.h:370! THP's collapse_huge_page() has an understandable but ugly difference in when its huge page is allocated: inside if NUMA but outside if not. It's hardly surprising that the memcg failure path forgot that, freeing the page in the non-NUMA case, then hitting a VM_BUG_ON in get_page() (or even worse, using the freed page). Signed-off-by: Hugh Dickins Reviewed-by: Minchan Kim Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed