mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Assume that bp->bio_offset is correctly initialized.
This fixes non-power-of-2 blocksize GEOM I/O.
This commit is contained in:
parent
b144e6ffeb
commit
e83d1f3b9c
1 changed files with 0 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue