From: David Rientjes Date: Tue, 29 May 2012 22:06:17 +0000 (-0700) Subject: mm, thp: allow fallback when pte_alloc_one() fails for huge pmd X-Git-Tag: v3.5-rc1~49^2~173 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edad9d2c337d43278a9d5aeb0ed531c2e838f8a6;p=pandora-kernel.git mm, thp: allow fallback when pte_alloc_one() fails for huge pmd The transparent hugepages feature is careful to not invoke the oom killer when a hugepage cannot be allocated. pte_alloc_one() failing in __do_huge_pmd_anonymous_page(), however, currently results in VM_FAULT_OOM which invokes the pagefault oom killer to kill a memory-hogging task. This is unnecessary since it's possible to drop the reference to the hugepage and fallback to allocating a small page. Signed-off-by: David Rientjes Cc: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed