Initialize b_iooffset before calling strategy

This commit is contained in:
phk 2003-10-18 19:48:21 +00:00
parent 7fb46a796f
commit 32b3105ecb
2 changed files with 2 additions and 0 deletions

View File

@ -734,6 +734,7 @@ spec_getpages(ap)
KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
bp->b_rcred = crhold(curthread->td_ucred);
bp->b_wcred = crhold(curthread->td_ucred);
bp->b_iooffset = offset;
bp->b_blkno = blkno;
bp->b_lblkno = blkno;
pbgetvp(ap->a_vp, bp);

View File

@ -69,6 +69,7 @@ physio(dev_t dev, struct uio *uio, int ioflag)
bp->b_data = uio->uio_iov[i].iov_base;
bp->b_bcount = uio->uio_iov[i].iov_len;
bp->b_offset = uio->uio_offset;
bp->b_iooffset = uio->uio_offset;
bp->b_saveaddr = sa;
/* Don't exceed drivers iosize limit */