[PATCH v3 8/10] x86/mm: Fix try_preserve_large_page() to handle large PAT bit

2015-08-05 Thread Toshi Kani
try_preserve_large_page() is called from __change_page_attr() to change the map attribute by preserving the 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() to use corresponding p?d_pfn() and

[PATCH v3 8/10] x86/mm: Fix try_preserve_large_page() to handle large PAT bit

2015-08-05 Thread Toshi Kani
try_preserve_large_page() is called from __change_page_attr() to change the map attribute by preserving the 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() to use corresponding p?d_pfn() and