summaryrefslogtreecommitdiffstats
path: root/block/bio-integrity.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-10-20 09:12:09 -0400
committerJens Axboe <axboe@fb.com>2016-10-28 10:45:17 -0400
commitc4aebd0332da831a3403faf2035af45059ab6b7c (patch)
tree42ac63ae9fffaedb92a124603f3e0fc2e7cb0b72 /block/bio-integrity.c
parent2552e3f878c2b43b41d7728a328821d8220c28da (diff)
block: remove bio_is_rw
With the addition of the zoned operations the tests in this function became incorrect. But I think it's much better to just open code the allow operations in the only caller anyway. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Shaun Tancheff <shaun.tancheff@seagate.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/bio-integrity.c')
-rw-r--r--block/bio-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio-integrity.c b/block/bio-integrity.c
index 63f72f00c72e..5384713d48bc 100644
--- a/block/bio-integrity.c
+++ b/block/bio-integrity.c
@@ -172,7 +172,7 @@ bool bio_integrity_enabled(struct bio *bio)
172{ 172{
173 struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev); 173 struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev);
174 174
175 if (!bio_is_rw(bio)) 175 if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE)
176 return false; 176 return false;
177 177
178 /* Already protected? */ 178 /* Already protected? */