Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a462b950 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe
Browse files

block: Dedicated error code fixups



This patch fixes two sparse warnings introduced by the "dedicated
error codes for the block layer V3" patch series. These changes
have not been tested.

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 047385b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1817,8 +1817,8 @@ void bio_endio(struct bio *bio)
	}
	}


	if (bio->bi_bdev && bio_flagged(bio, BIO_TRACE_COMPLETION)) {
	if (bio->bi_bdev && bio_flagged(bio, BIO_TRACE_COMPLETION)) {
		trace_block_bio_complete(bdev_get_queue(bio->bi_bdev),
		trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), bio,
					 bio, bio->bi_status);
					 blk_status_to_errno(bio->bi_status));
		bio_clear_flag(bio, BIO_TRACE_COMPLETION);
		bio_clear_flag(bio, BIO_TRACE_COMPLETION);
	}
	}


+1 −1
Original line number Original line Diff line number Diff line
@@ -91,7 +91,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter,
				       "(rcvd %u)\n", iter->disk_name,
				       "(rcvd %u)\n", iter->disk_name,
				       (unsigned long long)
				       (unsigned long long)
				       iter->seed, be32_to_cpu(pi->ref_tag));
				       iter->seed, be32_to_cpu(pi->ref_tag));
				return -EILSEQ;
				return BLK_STS_PROTECTION;
			}
			}
			break;
			break;
		case 3:
		case 3: