From d04b779c2dc9e26b2950aa03dcde3bd919b4a99f Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 15 Nov 2003 09:28:09 +0000 Subject: Send B_PHYS out to pasture, it no longer serves any function. --- sys/kern/kern_physio.c | 2 +- sys/kern/vfs_aio.c | 1 - sys/kern/vfs_bio.c | 9 --------- 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 6d93816..83b7b82 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -59,7 +59,7 @@ physio(dev_t dev, struct uio *uio, int ioflag) for (i = 0; i < uio->uio_iovcnt; i++) { while (uio->uio_iov[i].iov_len) { - bp->b_flags = B_PHYS; + bp->b_flags = 0; if (uio->uio_rw == UIO_READ) bp->b_iocmd = BIO_READ; else diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 6642fde..d51d3fc 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1102,7 +1102,6 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe) bp->b_bcount = cb->aio_nbytes; bp->b_bufsize = cb->aio_nbytes; - bp->b_flags = B_PHYS; bp->b_iodone = aio_physwakeup; bp->b_saveaddr = bp->b_data; bp->b_data = (void *)(uintptr_t)cb->aio_buf; diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 6fea80b..83eca08 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3074,15 +3074,6 @@ dev_strategy(struct buf *bp) if ((!bp->b_iocmd) || (bp->b_iocmd & (bp->b_iocmd - 1))) panic("b_iocmd botch"); - if (bp->b_flags & B_PHYS) - KASSERT(bp->b_io.bio_offset == bp->b_offset, - ("bio_offset %jd wrong, should be %jd", - (intmax_t)bp->b_io.bio_offset, (intmax_t)bp->b_offset)); - else - KASSERT(bp->b_io.bio_offset == dbtob(bp->b_blkno), - ("bio_offset %jd wrong, should be %jd", - (intmax_t)bp->b_io.bio_offset, - (intmax_t)dbtob(bp->b_blkno))); bp->b_io.bio_done = bufdonebio; bp->b_io.bio_caller2 = bp; (*devsw(bp->b_io.bio_dev)->d_strategy)(&bp->b_io); -- cgit v1.1