mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
7003e3b1f6
commit
e7744aa25c
3 changed files with 30 additions and 45 deletions
|
@ -113,8 +113,9 @@ typedef void (*dev_page_free_t)(struct page *page, void *data);
|
|||
struct dev_pagemap {
|
||||
dev_page_fault_t page_fault;
|
||||
dev_page_free_t page_free;
|
||||
struct vmem_altmap *altmap;
|
||||
const struct resource *res;
|
||||
struct vmem_altmap altmap;
|
||||
bool altmap_valid;
|
||||
struct resource res;
|
||||
struct percpu_ref *ref;
|
||||
struct device *dev;
|
||||
void *data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue