summaryrefslogtreecommitdiffstats
path: root/mm/gup.c
diff options
context:
space:
mode:
authorChristoph Hellwig2019-06-13 22:50:49 +0200
committerJason Gunthorpe2019-07-02 19:32:43 +0200
commit25b2995a35b609119cf96f6b62eccd56c0234c7d (patch)
tree308e7083b213b09ac1c8c5bcf08e42044efd9fcd /mm/gup.c
parentmm: remove the struct hmm_device infrastructure (diff)
downloadkernel-qcow2-linux-25b2995a35b609119cf96f6b62eccd56c0234c7d.tar.gz
kernel-qcow2-linux-25b2995a35b609119cf96f6b62eccd56c0234c7d.tar.xz
kernel-qcow2-linux-25b2995a35b609119cf96f6b62eccd56c0234c7d.zip
mm: remove MEMORY_DEVICE_PUBLIC support
The code hasn't been used since it was added to the tree, and doesn't appear to actually be usable. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Tested-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'mm/gup.c')
-rw-r--r--mm/gup.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/gup.c b/mm/gup.c
index ddde097cf9e4..fe131d879c70 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -605,13 +605,6 @@ static int get_gate_page(struct mm_struct *mm, unsigned long address,
if ((gup_flags & FOLL_DUMP) || !is_zero_pfn(pte_pfn(*pte)))
goto unmap;
*page = pte_page(*pte);
-
- /*
- * This should never happen (a device public page in the gate
- * area).
- */
- if (is_device_public_page(*page))
- goto unmap;
}
if (unlikely(!try_get_page(*page))) {
ret = -ENOMEM;