mm/gup: check for protnone only if it is a PTE entry
authorAneesh Kumar K.V <[email protected]>
Fri, 24 Feb 2017 22:59:53 +0000 (14:59 -0800)
committerLinus Torvalds <[email protected]>
Sat, 25 Feb 2017 01:46:56 +0000 (17:46 -0800)
commitdb08f2030a173fdb95b2e8e28d82c4e8c04df2ac
tree7a6abca436184c04f2bf78c0e87cc14346d6b160
parent199eaa05adc53825503a5303db624dd57397b93a
mm/gup: check for protnone only if it is a PTE entry

Do the prot_none/FOLL_NUMA check after we are sure this is a THP pte.
Archs can implement prot_none such that it can return true for regular
pmd entries.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/gup.c