File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ int dev_dax_probe(struct device *dev)
429
429
return - EBUSY ;
430
430
}
431
431
432
- dev_dax -> pgmap .type = MEMORY_DEVICE_DEVDAX ;
432
+ dev_dax -> pgmap .type = MEMORY_DEVICE_GENERIC ;
433
433
addr = devm_memremap_pages (dev , & dev_dax -> pgmap );
434
434
if (IS_ERR (addr ))
435
435
return PTR_ERR (addr );
Original file line number Diff line number Diff line change @@ -46,11 +46,10 @@ struct vmem_altmap {
46
46
* wakeup is used to coordinate physical address space management (ex:
47
47
* fs truncate/hole punch) vs pinned pages (ex: device dma).
48
48
*
49
- * MEMORY_DEVICE_DEVDAX :
49
+ * MEMORY_DEVICE_GENERIC :
50
50
* Host memory that has similar access semantics as System RAM i.e. DMA
51
- * coherent and supports page pinning. In contrast to
52
- * MEMORY_DEVICE_FS_DAX, this memory is access via a device-dax
53
- * character device.
51
+ * coherent and supports page pinning. This is for example used by DAX devices
52
+ * that expose memory using a character device.
54
53
*
55
54
* MEMORY_DEVICE_PCI_P2PDMA:
56
55
* Device memory residing in a PCI BAR intended for use with Peer-to-Peer
@@ -60,7 +59,7 @@ enum memory_type {
60
59
/* 0 is reserved to catch uninitialized type fields */
61
60
MEMORY_DEVICE_PRIVATE = 1 ,
62
61
MEMORY_DEVICE_FS_DAX ,
63
- MEMORY_DEVICE_DEVDAX ,
62
+ MEMORY_DEVICE_GENERIC ,
64
63
MEMORY_DEVICE_PCI_P2PDMA ,
65
64
};
66
65
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid)
216
216
return ERR_PTR (- EINVAL );
217
217
}
218
218
break ;
219
- case MEMORY_DEVICE_DEVDAX :
219
+ case MEMORY_DEVICE_GENERIC :
220
220
need_devmap_managed = false;
221
221
break ;
222
222
case MEMORY_DEVICE_PCI_P2PDMA :
You can’t perform that action at this time.
0 commit comments