diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 13:30:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 13:30:10 -0400 |
| commit | b7e6f62fe259187f2578d00960ef1b0e6ff6afd5 (patch) | |
| tree | 796fd3c878a2f8d8d55ea1e52ef236742a48c3dd /include | |
| parent | 8a392625b665c676a77c62f8608d10ff430bcb83 (diff) | |
| parent | d41e26b901111f4e540aa2c27ec7a1681c782be9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
* git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
dm crypt: add merge
dm table: remove merge_bvec sector restriction
dm: linear add merge
dm: introduce merge_bvec_fn
dm snapshot: use per device mempools
dm snapshot: fix race during exception creation
dm snapshot: track snapshot reads
dm mpath: fix test for reinstate_path
dm mpath: return parameter error
dm io: remove struct padding
dm log: make dm_dirty_log init and exit static
dm mpath: free path selector on invalid args
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device-mapper.h | 6 | ||||
| -rw-r--r-- | include/linux/dm-ioctl.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 0d8d419d191a..a90222e3297d 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
| @@ -9,11 +9,13 @@ | |||
| 9 | #define _LINUX_DEVICE_MAPPER_H | 9 | #define _LINUX_DEVICE_MAPPER_H |
| 10 | 10 | ||
| 11 | #include <linux/bio.h> | 11 | #include <linux/bio.h> |
| 12 | #include <linux/blkdev.h> | ||
| 12 | 13 | ||
| 13 | struct dm_target; | 14 | struct dm_target; |
| 14 | struct dm_table; | 15 | struct dm_table; |
| 15 | struct dm_dev; | 16 | struct dm_dev; |
| 16 | struct mapped_device; | 17 | struct mapped_device; |
| 18 | struct bio_vec; | ||
| 17 | 19 | ||
| 18 | typedef enum { STATUSTYPE_INFO, STATUSTYPE_TABLE } status_type_t; | 20 | typedef enum { STATUSTYPE_INFO, STATUSTYPE_TABLE } status_type_t; |
| 19 | 21 | ||
| @@ -72,6 +74,9 @@ typedef int (*dm_ioctl_fn) (struct dm_target *ti, struct inode *inode, | |||
| 72 | struct file *filp, unsigned int cmd, | 74 | struct file *filp, unsigned int cmd, |
| 73 | unsigned long arg); | 75 | unsigned long arg); |
| 74 | 76 | ||
| 77 | typedef int (*dm_merge_fn) (struct dm_target *ti, struct bvec_merge_data *bvm, | ||
| 78 | struct bio_vec *biovec, int max_size); | ||
| 79 | |||
| 75 | void dm_error(const char *message); | 80 | void dm_error(const char *message); |
| 76 | 81 | ||
| 77 | /* | 82 | /* |
| @@ -107,6 +112,7 @@ struct target_type { | |||
| 107 | dm_status_fn status; | 112 | dm_status_fn status; |
| 108 | dm_message_fn message; | 113 | dm_message_fn message; |
| 109 | dm_ioctl_fn ioctl; | 114 | dm_ioctl_fn ioctl; |
| 115 | dm_merge_fn merge; | ||
| 110 | }; | 116 | }; |
| 111 | 117 | ||
| 112 | struct io_restrictions { | 118 | struct io_restrictions { |
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h index b03c41bbfa14..28c2940eb30d 100644 --- a/include/linux/dm-ioctl.h +++ b/include/linux/dm-ioctl.h | |||
| @@ -256,9 +256,9 @@ enum { | |||
| 256 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) | 256 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) |
| 257 | 257 | ||
| 258 | #define DM_VERSION_MAJOR 4 | 258 | #define DM_VERSION_MAJOR 4 |
| 259 | #define DM_VERSION_MINOR 13 | 259 | #define DM_VERSION_MINOR 14 |
| 260 | #define DM_VERSION_PATCHLEVEL 0 | 260 | #define DM_VERSION_PATCHLEVEL 0 |
| 261 | #define DM_VERSION_EXTRA "-ioctl (2007-10-18)" | 261 | #define DM_VERSION_EXTRA "-ioctl (2008-04-23)" |
| 262 | 262 | ||
| 263 | /* Status bits */ | 263 | /* Status bits */ |
| 264 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ | 264 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ |
