diff options
author | Alasdair G Kergon <agk@redhat.com> | 2013-03-01 17:45:47 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-03-01 17:45:47 -0500 |
commit | 55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0 (patch) | |
tree | 7fb8ce46abe5e6f4a0a2dbcf2d3c848fdbfe4a56 /include/linux/device-mapper.h | |
parent | bd2a49b86d9aae0c505dcc99c0a073f9da2cc889 (diff) |
dm: rename request variables to bios
Use 'bio' in the name of variables and functions that deal with
bios rather than 'request' to avoid confusion with the normal
block layer use of 'request'.
No functional changes.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index a5cda3ea6b88..d5f984b07466 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -187,26 +187,26 @@ struct dm_target { | |||
187 | uint32_t max_io_len; | 187 | uint32_t max_io_len; |
188 | 188 | ||
189 | /* | 189 | /* |
190 | * A number of zero-length barrier requests that will be submitted | 190 | * A number of zero-length barrier bios that will be submitted |
191 | * to the target for the purpose of flushing cache. | 191 | * to the target for the purpose of flushing cache. |
192 | * | 192 | * |
193 | * The request number can be accessed with dm_bio_get_target_request_nr. | 193 | * The bio number can be accessed with dm_bio_get_target_bio_nr. |
194 | * It is a responsibility of the target driver to remap these requests | 194 | * It is a responsibility of the target driver to remap these bios |
195 | * to the real underlying devices. | 195 | * to the real underlying devices. |
196 | */ | 196 | */ |
197 | unsigned num_flush_requests; | 197 | unsigned num_flush_bios; |
198 | 198 | ||
199 | /* | 199 | /* |
200 | * The number of discard requests that will be submitted to the target. | 200 | * The number of discard bios that will be submitted to the target. |
201 | * The request number can be accessed with dm_bio_get_target_request_nr. | 201 | * The bio number can be accessed with dm_bio_get_target_bio_nr. |
202 | */ | 202 | */ |
203 | unsigned num_discard_requests; | 203 | unsigned num_discard_bios; |
204 | 204 | ||
205 | /* | 205 | /* |
206 | * The number of WRITE SAME requests that will be submitted to the target. | 206 | * The number of WRITE SAME bios that will be submitted to the target. |
207 | * The request number can be accessed with dm_bio_get_target_request_nr. | 207 | * The bio number can be accessed with dm_bio_get_target_bio_nr. |
208 | */ | 208 | */ |
209 | unsigned num_write_same_requests; | 209 | unsigned num_write_same_bios; |
210 | 210 | ||
211 | /* | 211 | /* |
212 | * The minimum number of extra bytes allocated in each bio for the | 212 | * The minimum number of extra bytes allocated in each bio for the |
@@ -233,10 +233,10 @@ struct dm_target { | |||
233 | bool discards_supported:1; | 233 | bool discards_supported:1; |
234 | 234 | ||
235 | /* | 235 | /* |
236 | * Set if the target required discard request to be split | 236 | * Set if the target required discard bios to be split |
237 | * on max_io_len boundary. | 237 | * on max_io_len boundary. |
238 | */ | 238 | */ |
239 | bool split_discard_requests:1; | 239 | bool split_discard_bios:1; |
240 | 240 | ||
241 | /* | 241 | /* |
242 | * Set if this target does not return zeroes on discarded blocks. | 242 | * Set if this target does not return zeroes on discarded blocks. |
@@ -261,7 +261,7 @@ struct dm_target_io { | |||
261 | struct dm_io *io; | 261 | struct dm_io *io; |
262 | struct dm_target *ti; | 262 | struct dm_target *ti; |
263 | union map_info info; | 263 | union map_info info; |
264 | unsigned target_request_nr; | 264 | unsigned target_bio_nr; |
265 | struct bio clone; | 265 | struct bio clone; |
266 | }; | 266 | }; |
267 | 267 | ||
@@ -275,9 +275,9 @@ static inline struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size) | |||
275 | return (struct bio *)((char *)data + data_size + offsetof(struct dm_target_io, clone)); | 275 | return (struct bio *)((char *)data + data_size + offsetof(struct dm_target_io, clone)); |
276 | } | 276 | } |
277 | 277 | ||
278 | static inline unsigned dm_bio_get_target_request_nr(const struct bio *bio) | 278 | static inline unsigned dm_bio_get_target_bio_nr(const struct bio *bio) |
279 | { | 279 | { |
280 | return container_of(bio, struct dm_target_io, clone)->target_request_nr; | 280 | return container_of(bio, struct dm_target_io, clone)->target_bio_nr; |
281 | } | 281 | } |
282 | 282 | ||
283 | int dm_register_target(struct target_type *t); | 283 | int dm_register_target(struct target_type *t); |