summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-11-15 09:28:09 +0000
committerphk <phk@FreeBSD.org>2003-11-15 09:28:09 +0000
commitd04b779c2dc9e26b2950aa03dcde3bd919b4a99f (patch)
tree2576f002db424d955f0e6e6ab48c66fec04717bf /sys/kern
parent0e7d8d9c5196ef34c88a203661fdb0df5272e50a (diff)
downloadFreeBSD-src-d04b779c2dc9e26b2950aa03dcde3bd919b4a99f.zip
FreeBSD-src-d04b779c2dc9e26b2950aa03dcde3bd919b4a99f.tar.gz
Send B_PHYS out to pasture, it no longer serves any function.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_physio.c2
-rw-r--r--sys/kern/vfs_aio.c1
-rw-r--r--sys/kern/vfs_bio.c9
3 files changed, 1 insertions, 11 deletions
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);
OpenPOWER on IntegriCloud