thp: prevent hugepages during args/env copying into the user stack
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 15 Feb 2011 18:02:45 +0000 (19:02 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Feb 2011 23:21:11 +0000 (15:21 -0800)
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 <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found