Revert debug code from bio-seg-limit

This patch reverts parts of bf08bc108dce6f1ecd0820c8b5a67b6fb7962c7e.
This commit is contained in:
Rob Norris 2023-08-08 12:05:47 +02:00 committed by Geoff Amey
parent 31db5c5b22
commit d6d343bb87
1 changed files with 2 additions and 6 deletions

View File

@ -1061,10 +1061,8 @@ bio_map(struct bio *bio, void *buf_ptr, unsigned int bio_size)
* This is a split page, so we need to ensure that we * This is a split page, so we need to ensure that we
* have room for the tail within this bio. * have room for the tail within this bio.
*/ */
if ((i + 1) == bio->bi_max_vecs) { if ((i + 1) == bio->bi_max_vecs)
cmn_err(CE_NOTE, "bio_map: avoided misalignment! bio %p", bio);
break; break;
}
/* Take up to the end of the page */ /* Take up to the end of the page */
size = PAGE_SIZE - offset; size = PAGE_SIZE - offset;
@ -1180,10 +1178,8 @@ abd_bio_map_off(struct bio *bio, abd_t *abd,
* This is a split page, so we need to ensure that we * This is a split page, so we need to ensure that we
* have room for the tail within this bio. * have room for the tail within this bio.
*/ */
if ((i + 1) == bio->bi_max_vecs) { if ((i + 1) == bio->bi_max_vecs)
cmn_err(CE_NOTE, "abd_bio_map_off: avoided misalignment! bio %p", bio);
break; break;
}
/* Take up to the end of the page */ /* Take up to the end of the page */
len = PAGE_SIZE - pgoff; len = PAGE_SIZE - pgoff;