summaryrefslogtreecommitdiffstats
path: root/mm/gup.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-02-12 17:15:33 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-02-12 17:15:33 -0800
commit1f947a7a011fcceb14cb912f5481a53b18f1879a (patch)
tree0c93fdd4b114af154ffbacd105b8f6775157a5be /mm/gup.c
parent991b9eb4243b53e6dcaeda94e515d713ca7ddd2e (diff)
parent27dd768ed8db48beefc4d9e006c58e7a00342bde (diff)
downloadlinux-1f947a7a011fcceb14cb912f5481a53b18f1879a.tar.gz
linux-1f947a7a011fcceb14cb912f5481a53b18f1879a.tar.bz2
linux-1f947a7a011fcceb14cb912f5481a53b18f1879a.zip
Merge branch 'akpm' (patches from Andrew)
Merge fixes from Andrew Morton: "6 fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: mm: proc: smaps_rollup: fix pss_locked calculation Rename include/{uapi => }/asm-generic/shmparam.h really Revert "mm: use early_pfn_to_nid in page_ext_init" mm/gup: fix gup_pmd_range() for dax Revert "mm: slowly shrink slabs with a relatively small number of objects" Revert "mm: don't reclaim inodes with many attached pages"
Diffstat (limited to 'mm/gup.c')
-rw-r--r--mm/gup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/gup.c b/mm/gup.c
index 05acd7e2eb22..75029649baca 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -1674,7 +1674,8 @@ static int gup_pmd_range(pud_t pud, unsigned long addr, unsigned long end,
if (!pmd_present(pmd))
return 0;
- if (unlikely(pmd_trans_huge(pmd) || pmd_huge(pmd))) {
+ if (unlikely(pmd_trans_huge(pmd) || pmd_huge(pmd) ||
+ pmd_devmap(pmd))) {
/*
* NUMA hinting faults need to be handled in the GUP
* slowpath for accounting purposes and so that they