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.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index df7607e6dce8..1381cd97b4ed 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -118,10 +118,9 @@ struct dm_dev {
118/* 118/*
119 * Constructors should call these functions to ensure destination devices 119 * Constructors should call these functions to ensure destination devices
120 * are opened/closed correctly. 120 * are opened/closed correctly.
121 * FIXME: too many arguments.
122 */ 121 */
123int dm_get_device(struct dm_target *ti, const char *path, sector_t start, 122int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
124 sector_t len, fmode_t mode, struct dm_dev **result); 123 struct dm_dev **result);
125void dm_put_device(struct dm_target *ti, struct dm_dev *d); 124void dm_put_device(struct dm_target *ti, struct dm_dev *d);
126 125
127/* 126/*
@@ -235,7 +234,7 @@ void dm_uevent_add(struct mapped_device *md, struct list_head *elist);
235const char *dm_device_name(struct mapped_device *md); 234const char *dm_device_name(struct mapped_device *md);
236int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); 235int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid);
237struct gendisk *dm_disk(struct mapped_device *md); 236struct gendisk *dm_disk(struct mapped_device *md);
238int dm_suspended(struct mapped_device *md); 237int dm_suspended(struct dm_target *ti);
239int dm_noflush_suspending(struct dm_target *ti); 238int dm_noflush_suspending(struct dm_target *ti);
240union map_info *dm_get_mapinfo(struct bio *bio); 239union map_info *dm_get_mapinfo(struct bio *bio);
241union map_info *dm_get_rq_mapinfo(struct request *rq); 240union map_info *dm_get_rq_mapinfo(struct request *rq);
@@ -276,7 +275,7 @@ void dm_table_unplug_all(struct dm_table *t);
276/* 275/*
277 * Table reference counting. 276 * Table reference counting.
278 */ 277 */
279struct dm_table *dm_get_table(struct mapped_device *md); 278struct dm_table *dm_get_live_table(struct mapped_device *md);
280void dm_table_get(struct dm_table *t); 279void dm_table_get(struct dm_table *t);
281void dm_table_put(struct dm_table *t); 280void dm_table_put(struct dm_table *t);
282 281
@@ -295,8 +294,10 @@ void dm_table_event(struct dm_table *t);
295 294
296/* 295/*
297 * The device must be suspended before calling this method. 296 * The device must be suspended before calling this method.
297 * Returns the previous table, which the caller must destroy.
298 */ 298 */
299int dm_swap_table(struct mapped_device *md, struct dm_table *t); 299struct dm_table *dm_swap_table(struct mapped_device *md,
300 struct dm_table *t);
300 301
301/* 302/*
302 * A wrapper around vmalloc. 303 * A wrapper around vmalloc.