dm: support REQ_OP_WRITE_ZEROES
Copy & paste from the REQ_OP_WRITE_SAME code. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
committed by
Jens Axboe
parent
0f5d690f7b
commit
ac62d6208a
@@ -254,6 +254,12 @@ struct dm_target {
|
||||
*/
|
||||
unsigned num_write_same_bios;
|
||||
|
||||
/*
|
||||
* The number of WRITE ZEROES bios that will be submitted to the target.
|
||||
* The bio number can be accessed with dm_bio_get_target_bio_nr.
|
||||
*/
|
||||
unsigned num_write_zeroes_bios;
|
||||
|
||||
/*
|
||||
* The minimum number of extra bytes allocated in each io for the
|
||||
* target to use.
|
||||
|
||||
Reference in New Issue
Block a user