diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device-mapper.h | 8 | ||||
| -rw-r--r-- | include/linux/dm-dirty-log.h | 6 | ||||
| -rw-r--r-- | include/linux/dm-ioctl.h | 13 | ||||
| -rw-r--r-- | include/linux/dm-region-hash.h | 3 |
4 files changed, 20 insertions, 10 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. |
diff --git a/include/linux/dm-dirty-log.h b/include/linux/dm-dirty-log.h index 5e8b11d88f6f..7084503c3405 100644 --- a/include/linux/dm-dirty-log.h +++ b/include/linux/dm-dirty-log.h | |||
| @@ -21,6 +21,7 @@ struct dm_dirty_log_type; | |||
| 21 | 21 | ||
| 22 | struct dm_dirty_log { | 22 | struct dm_dirty_log { |
| 23 | struct dm_dirty_log_type *type; | 23 | struct dm_dirty_log_type *type; |
| 24 | int (*flush_callback_fn)(struct dm_target *ti); | ||
| 24 | void *context; | 25 | void *context; |
| 25 | }; | 26 | }; |
| 26 | 27 | ||
| @@ -136,8 +137,9 @@ int dm_dirty_log_type_unregister(struct dm_dirty_log_type *type); | |||
| 136 | * type->constructor/destructor() directly. | 137 | * type->constructor/destructor() directly. |
| 137 | */ | 138 | */ |
| 138 | struct dm_dirty_log *dm_dirty_log_create(const char *type_name, | 139 | struct dm_dirty_log *dm_dirty_log_create(const char *type_name, |
| 139 | struct dm_target *ti, | 140 | struct dm_target *ti, |
| 140 | unsigned argc, char **argv); | 141 | int (*flush_callback_fn)(struct dm_target *ti), |
| 142 | unsigned argc, char **argv); | ||
| 141 | void dm_dirty_log_destroy(struct dm_dirty_log *log); | 143 | void dm_dirty_log_destroy(struct dm_dirty_log *log); |
| 142 | 144 | ||
| 143 | #endif /* __KERNEL__ */ | 145 | #endif /* __KERNEL__ */ |
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h index 2ab84c83c31a..aa95508d2f95 100644 --- a/include/linux/dm-ioctl.h +++ b/include/linux/dm-ioctl.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2001 - 2003 Sistina Software (UK) Limited. | 2 | * Copyright (C) 2001 - 2003 Sistina Software (UK) Limited. |
| 3 | * Copyright (C) 2004 - 2005 Red Hat, Inc. All rights reserved. | 3 | * Copyright (C) 2004 - 2009 Red Hat, Inc. All rights reserved. |
| 4 | * | 4 | * |
| 5 | * This file is released under the LGPL. | 5 | * This file is released under the LGPL. |
| 6 | */ | 6 | */ |
| @@ -266,9 +266,9 @@ enum { | |||
| 266 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) | 266 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) |
| 267 | 267 | ||
| 268 | #define DM_VERSION_MAJOR 4 | 268 | #define DM_VERSION_MAJOR 4 |
| 269 | #define DM_VERSION_MINOR 15 | 269 | #define DM_VERSION_MINOR 16 |
| 270 | #define DM_VERSION_PATCHLEVEL 0 | 270 | #define DM_VERSION_PATCHLEVEL 0 |
| 271 | #define DM_VERSION_EXTRA "-ioctl (2009-04-01)" | 271 | #define DM_VERSION_EXTRA "-ioctl (2009-11-05)" |
| 272 | 272 | ||
| 273 | /* Status bits */ | 273 | /* Status bits */ |
| 274 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ | 274 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ |
| @@ -309,4 +309,11 @@ enum { | |||
| 309 | */ | 309 | */ |
| 310 | #define DM_NOFLUSH_FLAG (1 << 11) /* In */ | 310 | #define DM_NOFLUSH_FLAG (1 << 11) /* In */ |
| 311 | 311 | ||
| 312 | /* | ||
| 313 | * If set, any table information returned will relate to the inactive | ||
| 314 | * table instead of the live one. Always check DM_INACTIVE_PRESENT_FLAG | ||
| 315 | * is set before using the data returned. | ||
| 316 | */ | ||
| 317 | #define DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12) /* In */ | ||
| 318 | |||
| 312 | #endif /* _LINUX_DM_IOCTL_H */ | 319 | #endif /* _LINUX_DM_IOCTL_H */ |
diff --git a/include/linux/dm-region-hash.h b/include/linux/dm-region-hash.h index a9e652a41373..9e2a7a401df5 100644 --- a/include/linux/dm-region-hash.h +++ b/include/linux/dm-region-hash.h | |||
| @@ -78,8 +78,7 @@ void dm_rh_dec(struct dm_region_hash *rh, region_t region); | |||
| 78 | /* Delay bios on regions. */ | 78 | /* Delay bios on regions. */ |
| 79 | void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio); | 79 | void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio); |
| 80 | 80 | ||
| 81 | void dm_rh_mark_nosync(struct dm_region_hash *rh, | 81 | void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio); |
| 82 | struct bio *bio, unsigned done, int error); | ||
| 83 | 82 | ||
| 84 | /* | 83 | /* |
| 85 | * Region recovery control. | 84 | * Region recovery control. |
