diff options
author | NeilBrown <neilb@suse.com> | 2017-11-21 22:25:18 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-12-13 12:15:58 -0500 |
commit | f31c21e4365c02ccf7226c33ea978cd5dbfc351e (patch) | |
tree | 26dd1f16a7996339e872af8bb3702d7c713e02af /include/linux/device-mapper.h | |
parent | 18a25da84354c6bb655320de6072c00eda6eb602 (diff) |
dm: remove unused 'num_write_bios' target interface
No DM target provides num_write_bios and none has since dm-cache's
brief use in 2013.
Having the possibility of num_write_bios > 1 complicates bio
allocation. So remove the interface and assume there is only one bio
needed.
If a target ever needs more, it must provide a suitable bioset and
allocate itself based on its particular needs.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index a5538433c927..5a68b366e664 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -221,14 +221,6 @@ struct target_type { | |||
221 | #define dm_target_is_wildcard(type) ((type)->features & DM_TARGET_WILDCARD) | 221 | #define dm_target_is_wildcard(type) ((type)->features & DM_TARGET_WILDCARD) |
222 | 222 | ||
223 | /* | 223 | /* |
224 | * Some targets need to be sent the same WRITE bio severals times so | ||
225 | * that they can send copies of it to different devices. This function | ||
226 | * examines any supplied bio and returns the number of copies of it the | ||
227 | * target requires. | ||
228 | */ | ||
229 | typedef unsigned (*dm_num_write_bios_fn) (struct dm_target *ti, struct bio *bio); | ||
230 | |||
231 | /* | ||
232 | * A target implements own bio data integrity. | 224 | * A target implements own bio data integrity. |
233 | */ | 225 | */ |
234 | #define DM_TARGET_INTEGRITY 0x00000010 | 226 | #define DM_TARGET_INTEGRITY 0x00000010 |
@@ -291,13 +283,6 @@ struct dm_target { | |||
291 | */ | 283 | */ |
292 | unsigned per_io_data_size; | 284 | unsigned per_io_data_size; |
293 | 285 | ||
294 | /* | ||
295 | * If defined, this function is called to find out how many | ||
296 | * duplicate bios should be sent to the target when writing | ||
297 | * data. | ||
298 | */ | ||
299 | dm_num_write_bios_fn num_write_bios; | ||
300 | |||
301 | /* target specific data */ | 286 | /* target specific data */ |
302 | void *private; | 287 | void *private; |
303 | 288 | ||