x86: cpa, preserve large pages if possible
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 Feb 2008 15:48:07 +0000 (16:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 Feb 2008 15:48:07 +0000 (16:48 +0100)
commit65e074dffa198978ab0c9976a19b954fbe1183e2
treea50807444598c6d7a64ed75af23f9a246ee40d86
parentf4ae5da0e8e92caa168e7c2a7c4a6c4064b082c2
x86: cpa, preserve large pages if possible

When CPA is called on a range which fits into a large page mapping,
avoid to split the page when:

1) There is no change of attributes
2) The range to change is a complete large mapping

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c