]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/thp: Preserve pgprot across huge page split
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 17 Jul 2012 16:25:14 +0000 (18:25 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 28 Oct 2012 16:30:54 +0000 (17:30 +0100)
commit3f2b613771ecb927519ce95e902136c4e7bc0948
tree1ebee886fea890c3c57faf5c8dd283975a964ac6
parenta5a608d83e0e680f44e8d25e860e5d57633b5bcb
mm/thp: Preserve pgprot across huge page split

We're going to play games with page-protections, ensure we don't lose
them over a THP split.

Collapse seems to always allocate a new (huge) page which should
already end up on the new target node so loosing protections there
isn't a problem.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Paul Turner <pjt@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Link: http://lkml.kernel.org/n/tip-eyi25t4eh3l4cd2zp4k3bj6c@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/pgtable.h
mm/huge_memory.c