diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2017-12-29 08:54:04 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-01-08 11:46:23 -0800 |
commit | e7744aa25cffe26d3767c9ffcf4e130cca1dff00 (patch) | |
tree | 357b10bcfa854ed7b4e74fb55f64ae349b11efce /mm | |
parent | 7003e3b1f64d0195ea9d31aed0b096ad38f3cb54 (diff) | |
download | linux-e7744aa25cffe26d3767c9ffcf4e130cca1dff00.tar.gz linux-e7744aa25cffe26d3767c9ffcf4e130cca1dff00.tar.bz2 linux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |