aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2014-09-26 19:19:59 -0400
committerJens Axboe <axboe@fb.com>2014-09-27 11:14:50 -0400
commit3be91c4a3d090bd700bd6ee5bf457c1bbf189a4f (patch)
tree235e86f4934f132dec54a4ec376886774a59fb1a /include/linux/blkdev.h
parent5f9378fa9ca214977b5bfc12197c67eea450fc40 (diff)
block: Deprecate the use of the term sector in the context of block integrity
The protection interval is not necessarily tied to the logical block size of a block device. Stop using the terms "sector" and "sectors". Going forward we will use the term "seed" to describe the initial reference tag value for a given I/O. "Interval" will be used to describe the portion of the data buffer that a given piece of protection information is associated with. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 0bf5d79d9ba0..d364c42dbf17 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1464,9 +1464,9 @@ static inline uint64_t rq_io_start_time_ns(struct request *req)
1464struct blk_integrity_exchg { 1464struct blk_integrity_exchg {
1465 void *prot_buf; 1465 void *prot_buf;
1466 void *data_buf; 1466 void *data_buf;
1467 sector_t sector; 1467 sector_t seed;
1468 unsigned int data_size; 1468 unsigned int data_size;
1469 unsigned short sector_size; 1469 unsigned short interval;
1470 const char *disk_name; 1470 const char *disk_name;
1471}; 1471};
1472 1472
@@ -1479,7 +1479,7 @@ struct blk_integrity {
1479 1479
1480 unsigned short flags; 1480 unsigned short flags;
1481 unsigned short tuple_size; 1481 unsigned short tuple_size;
1482 unsigned short sector_size; 1482 unsigned short interval;
1483 unsigned short tag_size; 1483 unsigned short tag_size;
1484 1484
1485 const char *name; 1485 const char *name;