diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d364c42dbf17..24c1e055b8a7 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1461,7 +1461,7 @@ static inline uint64_t rq_io_start_time_ns(struct request *req) | |||
1461 | #define INTEGRITY_FLAG_READ 2 /* verify data integrity on read */ | 1461 | #define INTEGRITY_FLAG_READ 2 /* verify data integrity on read */ |
1462 | #define INTEGRITY_FLAG_WRITE 4 /* generate data integrity on write */ | 1462 | #define INTEGRITY_FLAG_WRITE 4 /* generate data integrity on write */ |
1463 | 1463 | ||
1464 | struct blk_integrity_exchg { | 1464 | struct blk_integrity_iter { |
1465 | void *prot_buf; | 1465 | void *prot_buf; |
1466 | void *data_buf; | 1466 | void *data_buf; |
1467 | sector_t seed; | 1467 | sector_t seed; |
@@ -1470,12 +1470,11 @@ struct blk_integrity_exchg { | |||
1470 | const char *disk_name; | 1470 | const char *disk_name; |
1471 | }; | 1471 | }; |
1472 | 1472 | ||
1473 | typedef void (integrity_gen_fn) (struct blk_integrity_exchg *); | 1473 | typedef int (integrity_processing_fn) (struct blk_integrity_iter *); |
1474 | typedef int (integrity_vrfy_fn) (struct blk_integrity_exchg *); | ||
1475 | 1474 | ||
1476 | struct blk_integrity { | 1475 | struct blk_integrity { |
1477 | integrity_gen_fn *generate_fn; | 1476 | integrity_processing_fn *generate_fn; |
1478 | integrity_vrfy_fn *verify_fn; | 1477 | integrity_processing_fn *verify_fn; |
1479 | 1478 | ||
1480 | unsigned short flags; | 1479 | unsigned short flags; |
1481 | unsigned short tuple_size; | 1480 | unsigned short tuple_size; |