diff options
| author | Martin K. Petersen <martin.petersen@oracle.com> | 2014-09-26 19:20:02 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2014-09-27 11:14:51 -0400 |
| commit | 8288f496eb1b1905c425e92eaf1abbb29119217b (patch) | |
| tree | 12559a35cd7ec36bffe28c29a618d0d63b9c1c9f /include/linux | |
| parent | 1859308853b19c4daf4afaab910d3d52ac1ec2ff (diff) | |
block: Add prefix to block integrity profile flags
Add a BLK_ prefix to the integrity profile flags. Also rename the flags
to be more consistent with the generate/verify terminology in the rest
of the integrity code.
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')
| -rw-r--r-- | include/linux/blkdev.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 24c1e055b8a7..cf92eb031ae9 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -1458,8 +1458,10 @@ static inline uint64_t rq_io_start_time_ns(struct request *req) | |||
| 1458 | 1458 | ||
| 1459 | #if defined(CONFIG_BLK_DEV_INTEGRITY) | 1459 | #if defined(CONFIG_BLK_DEV_INTEGRITY) |
| 1460 | 1460 | ||
| 1461 | #define INTEGRITY_FLAG_READ 2 /* verify data integrity on read */ | 1461 | enum blk_integrity_flags { |
| 1462 | #define INTEGRITY_FLAG_WRITE 4 /* generate data integrity on write */ | 1462 | BLK_INTEGRITY_VERIFY = 1 << 0, |
| 1463 | BLK_INTEGRITY_GENERATE = 1 << 1, | ||
| 1464 | }; | ||
| 1463 | 1465 | ||
| 1464 | struct blk_integrity_iter { | 1466 | struct blk_integrity_iter { |
| 1465 | void *prot_buf; | 1467 | void *prot_buf; |
