This is a preparation patch for implementing the support for the write-zeroes operations for null_blk. We introduce a new bool flag write-zeroes for nullb_device structure so that user can either set this value through configfs when null_blk is memory backed or use module parameter. Following two patches are implementing respective support for REQ_OP_WRITE_ZEROES. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx> --- drivers/block/null_blk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/null_blk.h b/drivers/block/null_blk.h index 34b22d6523ba..ecd1e45f6eb9 100644 --- a/drivers/block/null_blk.h +++ b/drivers/block/null_blk.h @@ -63,6 +63,7 @@ struct nullb_device { bool power; /* power on/off the device */ bool memory_backed; /* if data is stored in memory */ bool discard; /* if support discard */ + bool write_zeroes; /* if support write_zeroes */ bool zoned; /* if device is zoned */ }; -- 2.17.0