diff options
author | Mike Snitzer <snitzer@redhat.com> | 2019-01-18 14:19:26 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-02-20 23:24:55 -0500 |
commit | 61697a6abd24acba941359c6268a94f4afe4a53d (patch) | |
tree | 9c1b1de749c7479a1a9f14392c673f84f4ede9a4 /include/linux/device-mapper.h | |
parent | 568c73a355e0b845dc983aa59c8a8dc69294b275 (diff) |
dm: eliminate 'split_discard_bios' flag from DM target interface
There is no need to have DM core split discards on behalf of a DM target
now that blk_queue_split() handles splitting discards based on the
queue_limits. A DM target just needs to set max_discard_sectors,
discard_granularity, etc, in queue_limits.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index e528baebad69..0f5b3d7c6cb3 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -315,12 +315,6 @@ struct dm_target { | |||
315 | * whether or not its underlying devices have support. | 315 | * whether or not its underlying devices have support. |
316 | */ | 316 | */ |
317 | bool discards_supported:1; | 317 | bool discards_supported:1; |
318 | |||
319 | /* | ||
320 | * Set if the target required discard bios to be split | ||
321 | * on max_io_len boundary. | ||
322 | */ | ||
323 | bool split_discard_bios:1; | ||
324 | }; | 318 | }; |
325 | 319 | ||
326 | /* Each target can link one of these into the table */ | 320 | /* Each target can link one of these into the table */ |