aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 78ad0624cdae..f4c639c0c362 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -130,13 +130,15 @@ typedef int (*dm_busy_fn) (struct dm_target *ti);
130 * < 0 : error 130 * < 0 : error
131 * >= 0 : the number of bytes accessible at the address 131 * >= 0 : the number of bytes accessible at the address
132 */ 132 */
133typedef long (*dm_direct_access_fn) (struct dm_target *ti, sector_t sector, 133typedef long (*dm_dax_direct_access_fn) (struct dm_target *ti, pgoff_t pgoff,
134 void **kaddr, pfn_t *pfn, long size); 134 long nr_pages, void **kaddr, pfn_t *pfn);
135#define PAGE_SECTORS (PAGE_SIZE / 512)
135 136
136void dm_error(const char *message); 137void dm_error(const char *message);
137 138
138struct dm_dev { 139struct dm_dev {
139 struct block_device *bdev; 140 struct block_device *bdev;
141 struct dax_device *dax_dev;
140 fmode_t mode; 142 fmode_t mode;
141 char name[16]; 143 char name[16];
142}; 144};
@@ -178,7 +180,7 @@ struct target_type {
178 dm_busy_fn busy; 180 dm_busy_fn busy;
179 dm_iterate_devices_fn iterate_devices; 181 dm_iterate_devices_fn iterate_devices;
180 dm_io_hints_fn io_hints; 182 dm_io_hints_fn io_hints;
181 dm_direct_access_fn direct_access; 183 dm_dax_direct_access_fn direct_access;
182 184
183 /* For internal device-mapper use. */ 185 /* For internal device-mapper use. */
184 struct list_head list; 186 struct list_head list;