diff options
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 13 |
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 | */ |
123 | int dm_get_device(struct dm_target *ti, const char *path, sector_t start, | 122 | int 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); |
125 | void dm_put_device(struct dm_target *ti, struct dm_dev *d); | 124 | void 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); | |||
235 | const char *dm_device_name(struct mapped_device *md); | 234 | const char *dm_device_name(struct mapped_device *md); |
236 | int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); | 235 | int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); |
237 | struct gendisk *dm_disk(struct mapped_device *md); | 236 | struct gendisk *dm_disk(struct mapped_device *md); |
238 | int dm_suspended(struct mapped_device *md); | 237 | int dm_suspended(struct dm_target *ti); |
239 | int dm_noflush_suspending(struct dm_target *ti); | 238 | int dm_noflush_suspending(struct dm_target *ti); |
240 | union map_info *dm_get_mapinfo(struct bio *bio); | 239 | union map_info *dm_get_mapinfo(struct bio *bio); |
241 | union map_info *dm_get_rq_mapinfo(struct request *rq); | 240 | union 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 | */ |
279 | struct dm_table *dm_get_table(struct mapped_device *md); | 278 | struct dm_table *dm_get_live_table(struct mapped_device *md); |
280 | void dm_table_get(struct dm_table *t); | 279 | void dm_table_get(struct dm_table *t); |
281 | void dm_table_put(struct dm_table *t); | 280 | void 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 | */ |
299 | int dm_swap_table(struct mapped_device *md, struct dm_table *t); | 299 | struct 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. |