x86: mm: restore original pte_special check
authorMel Gorman <[email protected]>
Thu, 12 Feb 2015 22:58:38 +0000 (14:58 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:08 +0000 (18:54 -0800)
commitc819f37e7e174d68cd013abf33725b4e07ced023
tree131bbb70b02b61f0096d38e27a7302e5bc244387
parente944fd67b625c02bda4a78ddf85e413c5e401474
x86: mm: restore original pte_special check

Commit b38af4721f59 ("x86,mm: fix pte_special versus pte_numa") adjusted
the pte_special check to take into account that a special pte had
SPECIAL and neither PRESENT nor PROTNONE.  Now that NUMA hinting PTEs
are no longer modifying _PAGE_PRESENT it should be safe to restore the
original pte_special behaviour.

Signed-off-by: Mel Gorman <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Kirill Shutemov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/include/asm/pgtable.h