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 /block/bio-integrity.c | |
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 'block/bio-integrity.c')
-rw-r--r-- | block/bio-integrity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bio-integrity.c b/block/bio-integrity.c index fe4de033b34c..e64733bb29b6 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c | |||
@@ -173,11 +173,11 @@ bool bio_integrity_enabled(struct bio *bio) | |||
173 | return false; | 173 | return false; |
174 | 174 | ||
175 | if (bio_data_dir(bio) == READ && bi->verify_fn != NULL && | 175 | if (bio_data_dir(bio) == READ && bi->verify_fn != NULL && |
176 | (bi->flags & INTEGRITY_FLAG_READ)) | 176 | (bi->flags & BLK_INTEGRITY_VERIFY)) |
177 | return true; | 177 | return true; |
178 | 178 | ||
179 | if (bio_data_dir(bio) == WRITE && bi->generate_fn != NULL && | 179 | if (bio_data_dir(bio) == WRITE && bi->generate_fn != NULL && |
180 | (bi->flags & INTEGRITY_FLAG_WRITE)) | 180 | (bi->flags & BLK_INTEGRITY_GENERATE)) |
181 | return true; | 181 | return true; |
182 | 182 | ||
183 | return false; | 183 | return false; |