diff options
author | Toshi Kani <toshi.kani@hpe.com> | 2015-09-17 12:24:22 -0600 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-09-22 21:27:33 +0200 |
commit | 3a19109efbfa7d887996a74257556a46e00525c2 (patch) | |
tree | 8120ff3d673ff2270ada1799417cb2e86ea1cda5 /kernel/bpf | |
parent | daf3e35c5888e8bd6a2f5ed15ed392b2df362ecf (diff) | |
download | op-kernel-dev-3a19109efbfa7d887996a74257556a46e00525c2.zip op-kernel-dev-3a19109efbfa7d887996a74257556a46e00525c2.tar.gz |
x86/mm: Fix try_preserve_large_page() to handle large PAT bit
try_preserve_large_page() is called from __change_page_attr() to
change the mapping attribute of a given large page. This function
uses pte_pfn() and pte_pgprot() for PUD/PMD, which do not handle
the large PAT bit properly.
Fix try_preserve_large_page() by using the corresponding pud/pmd
prot/pfn interfaces.
Also remove '#ifdef CONFIG_X86_64', which is not necessary.
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Robert Elliot <elliott@hpe.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1442514264-12475-10-git-send-email-toshi.kani@hpe.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions