From: Andrea Arcangeli Date: Tue, 15 Feb 2011 18:02:45 +0000 (+0100) Subject: thp: prevent hugepages during args/env copying into the user stack X-Git-Tag: v2.6.38-rc5~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d6e4ecdb7648478ddec76d30d87d03d6e22b31;p=pandora-kernel.git thp: prevent hugepages during args/env copying into the user stack Transparent hugepages can only be created if rmap is fully functional. So we must prevent hugepages to be created while is_vma_temporary_stack() is true. This also optmizes away some harmless but unnecessary setting of khugepaged_scan.address and it switches some BUG_ON to VM_BUG_ON. Signed-off-by: Andrea Arcangeli Acked-by: Rik van Riel Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed