mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Reviewed-by: Shaun Tancheff <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
2552e3f878
commit
c4aebd0332
2 changed files with 1 additions and 12 deletions
|
|
@ -172,7 +172,7 @@ bool bio_integrity_enabled(struct bio *bio)
|
|||
{
|
||||
struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev);
|
||||
|
||||
if (!bio_is_rw(bio))
|
||||
if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE)
|
||||
return false;
|
||||
|
||||
/* Already protected? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue