summaryrefslogtreecommitdiffstats
path: root/mm/hmm.c
diff options
context:
space:
mode:
authorChristoph Hellwig2019-06-26 14:27:07 +0200
committerJason Gunthorpe2019-07-02 19:32:44 +0200
commit3ed2dcdf54d5bf1f9823b5faf1a702e7cee53982 (patch)
treef025d9105611d1c4d90d3265176e79a71d1b83a8 /mm/hmm.c
parentmm: factor out a devm_request_free_mem_region helper (diff)
downloadkernel-qcow2-linux-3ed2dcdf54d5bf1f9823b5faf1a702e7cee53982.tar.gz
kernel-qcow2-linux-3ed2dcdf54d5bf1f9823b5faf1a702e7cee53982.tar.xz
kernel-qcow2-linux-3ed2dcdf54d5bf1f9823b5faf1a702e7cee53982.zip
memremap: validate the pagemap type passed to devm_memremap_pages
Most pgmap types are only supported when certain config options are enabled. Check for a type that is valid for the current configuration before setting up the pagemap. For this the usage of the 0 type for device dax gets replaced with an explicit MEMORY_DEVICE_DEVDAX type. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ira Weiny <ira.weiny@intel.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/hmm.c')
0 files changed, 0 insertions, 0 deletions