瀏覽代碼

block: renumber REQ_OP_WRITE_ZEROES

Make life easy for implementations that needs to send a data buffer
to the device (e.g. SCSI) by numbering it as a data out command.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Christoph Hellwig 8 年之前
父節點
當前提交
1d62ac1363
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/blk_types.h

+ 1 - 1
include/linux/blk_types.h

@@ -174,7 +174,7 @@ enum req_opf {
 	/* write the same sector many times */
 	/* write the same sector many times */
 	REQ_OP_WRITE_SAME	= 7,
 	REQ_OP_WRITE_SAME	= 7,
 	/* write the zero filled sector many times */
 	/* write the zero filled sector many times */
-	REQ_OP_WRITE_ZEROES	= 8,
+	REQ_OP_WRITE_ZEROES	= 9,
 
 
 	/* SCSI passthrough using struct scsi_request */
 	/* SCSI passthrough using struct scsi_request */
 	REQ_OP_SCSI_IN		= 32,
 	REQ_OP_SCSI_IN		= 32,