summaryrefslogtreecommitdiffstats
path: root/include/linux/memremap.h
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-12-29 02:54:04 -0500
committerDan Williams <dan.j.williams@intel.com>2018-01-08 14:46:23 -0500
commite7744aa25cffe26d3767c9ffcf4e130cca1dff00 (patch)
tree357b10bcfa854ed7b4e74fb55f64ae349b11efce /include/linux/memremap.h
parent7003e3b1f64d0195ea9d31aed0b096ad38f3cb54 (diff)
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 'include/linux/memremap.h')
-rw-r--r--include/linux/memremap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/memremap.h b/include/linux/memremap.h
index 3fddcfe57bb0..1cb5f39d25c1 100644
--- a/include/linux/memremap.h
+++ b/include/linux/memremap.h
@@ -113,8 +113,9 @@ typedef void (*dev_page_free_t)(struct page *page, void *data);
113struct dev_pagemap { 113struct dev_pagemap {
114 dev_page_fault_t page_fault; 114 dev_page_fault_t page_fault;
115 dev_page_free_t page_free; 115 dev_page_free_t page_free;
116 struct vmem_altmap *altmap; 116 struct vmem_altmap altmap;
117 const struct resource *res; 117 bool altmap_valid;
118 struct resource res;
118 struct percpu_ref *ref; 119 struct percpu_ref *ref;
119 struct device *dev; 120 struct device *dev;
120 void *data; 121 void *data;