diff options
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index df7607e6dce8..d4c9c0b88adc 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -235,7 +235,7 @@ void dm_uevent_add(struct mapped_device *md, struct list_head *elist); | |||
235 | const char *dm_device_name(struct mapped_device *md); | 235 | const char *dm_device_name(struct mapped_device *md); |
236 | int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); | 236 | int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); |
237 | struct gendisk *dm_disk(struct mapped_device *md); | 237 | struct gendisk *dm_disk(struct mapped_device *md); |
238 | int dm_suspended(struct mapped_device *md); | 238 | int dm_suspended(struct dm_target *ti); |
239 | int dm_noflush_suspending(struct dm_target *ti); | 239 | int dm_noflush_suspending(struct dm_target *ti); |
240 | union map_info *dm_get_mapinfo(struct bio *bio); | 240 | union map_info *dm_get_mapinfo(struct bio *bio); |
241 | union map_info *dm_get_rq_mapinfo(struct request *rq); | 241 | union map_info *dm_get_rq_mapinfo(struct request *rq); |
@@ -276,7 +276,7 @@ void dm_table_unplug_all(struct dm_table *t); | |||
276 | /* | 276 | /* |
277 | * Table reference counting. | 277 | * Table reference counting. |
278 | */ | 278 | */ |
279 | struct dm_table *dm_get_table(struct mapped_device *md); | 279 | struct dm_table *dm_get_live_table(struct mapped_device *md); |
280 | void dm_table_get(struct dm_table *t); | 280 | void dm_table_get(struct dm_table *t); |
281 | void dm_table_put(struct dm_table *t); | 281 | void dm_table_put(struct dm_table *t); |
282 | 282 | ||
@@ -295,8 +295,10 @@ void dm_table_event(struct dm_table *t); | |||
295 | 295 | ||
296 | /* | 296 | /* |
297 | * The device must be suspended before calling this method. | 297 | * The device must be suspended before calling this method. |
298 | * Returns the previous table, which the caller must destroy. | ||
298 | */ | 299 | */ |
299 | int dm_swap_table(struct mapped_device *md, struct dm_table *t); | 300 | struct dm_table *dm_swap_table(struct mapped_device *md, |
301 | struct dm_table *t); | ||
300 | 302 | ||
301 | /* | 303 | /* |
302 | * A wrapper around vmalloc. | 304 | * A wrapper around vmalloc. |