Assume that bp->bio_offset is correctly initialized.

This fixes non-power-of-2 blocksize GEOM I/O.
This commit is contained in:
Poul-Henning Kamp 2003-10-12 11:35:55 +00:00
parent b144e6ffeb
commit e83d1f3b9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121030

View File

@ -386,7 +386,6 @@ g_dev_strategy(struct bio *bp)
tsleep(&bp, PRIBIO, "gdstrat", hz / 10);
}
KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place"));
bp2->bio_offset = (off_t)bp->bio_blkno << DEV_BSHIFT;
KASSERT(bp2->bio_offset >= 0,
("Negative bio_offset (%jd) on bio %p",
(intmax_t)bp2->bio_offset, bp));