block: Fix left-over bi_bdev usage
PATCH 1/1 block: Fix left-over bi_bdev usage
The bi_bdev field was replaced with the gendisk. This patch just fixes an omission.
--- block/bio-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/bio-integrity.c +1 -1
@@ -385,7 +385,7 @@ static void bio_integrity_verify_fn(struct work_struct *work)*/ bool __bio_integrity_endio (struct bio *bio) { -struct blk_integrity *bi =bdev_get_integrity (bio->bi_bdev); +struct blk_integrity *bi =blk_get_integrity (bio->bi_disk);struct bio_integrity_payload *bip =bio_integrity (bio); if (bio_op(bio) == REQ_OP_READ && !bio->bi_status &&
Signature · 1 line
2.5.5
Quoted 2 lines · Keith Busch
The
bi_bdevfield was replaced with the gendisk. This patch just fixes an omission.
Thanks Keith. I'm pretty sure I fixed exactly this one when rebasing from my nvme tree to the block tree. But I guess I didn't finish the rebase fully, as usual - git rebase considered harmful :)
Jens Axboe
maintainerQuoted 7 lines · Christoph Hellwig
Quoted 2 lines · Keith Busch
The
bi_bdevfield was replaced with the gendisk. This patch just fixes an omission.Thanks Keith. I'm pretty sure I fixed exactly this one when rebasing from my nvme tree to the block tree. But I guess I didn't finish the rebase fully, as usual - git rebase considered harmful :)
Problem is, the issue doesn't exist in my for-4.14/block branch, it only exists when that is merged with master. I'll apply it to my for-next branch, even though that one is not persistent, so that it builds.
Signature · 1 line
Jens Axboe