summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-12-29 08:54:04 +0100
committerDan Williams <dan.j.williams@intel.com>2018-01-08 11:46:23 -0800
commite7744aa25cffe26d3767c9ffcf4e130cca1dff00 (patch)
tree357b10bcfa854ed7b4e74fb55f64ae349b11efce /mm
parent7003e3b1f64d0195ea9d31aed0b096ad38f3cb54 (diff)
downloadlinux-stable-e7744aa25cffe26d3767c9ffcf4e130cca1dff00.tar.gz
linux-stable-e7744aa25cffe26d3767c9ffcf4e130cca1dff00.tar.bz2
linux-stable-e7744aa25cffe26d3767c9ffcf4e130cca1dff00.zip
memremap: drop private struct page_map
'struct page_map' is a private structure of 'struct dev_pagemap' but the latter replicates all the same fields as the former so there isn't much value in it. Thus drop it in favour of a completely public struct. This is a clean up in preperation for a more generally useful 'devm_memeremap_pages' interface. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/hmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hmm.c b/mm/hmm.c
index 2f2e13c61040..320fdc87f064 100644
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -882,7 +882,7 @@ static int hmm_devmem_pages_create(struct hmm_devmem *devmem)
else
devmem->pagemap.type = MEMORY_DEVICE_PRIVATE;
- devmem->pagemap.res = devmem->resource;
+ devmem->pagemap.res = *devmem->resource;
devmem->pagemap.page_fault = hmm_devmem_fault;
devmem->pagemap.page_free = hmm_devmem_free;
devmem->pagemap.dev = devmem->device;