mm/gup: fix gup_pmd_range() for dax
authorYu Zhao <[email protected]>
Tue, 12 Feb 2019 23:35:58 +0000 (15:35 -0800)
committerLinus Torvalds <[email protected]>
Wed, 13 Feb 2019 00:33:18 +0000 (16:33 -0800)
commit414fd080d125408cb15d04ff4907e1dd8145c8c7
treeaf0d71838b5392eb11d670745ee1624c1e166af5
parenta9a238e83fbb0df31c3b9b67003f8f9d1d1b6c96
mm/gup: fix gup_pmd_range() for dax

For dax pmd, pmd_trans_huge() returns false but pmd_huge() returns true
on x86.  So the function works as long as hugetlb is configured.
However, dax doesn't depend on hugetlb.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yu Zhao <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: "Michael S . Tsirkin" <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Wei Yang <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Andrea Arcangeli <[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