mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Send B_PHYS out to pasture, it no longer serves any function.
This commit is contained in:
parent
28c9416429
commit
00cbe31bd8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122747
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -218,7 +218,7 @@ struct buf {
|
||||
#define B_NOCACHE 0x00008000 /* Do not cache block after use. */
|
||||
#define B_MALLOC 0x00010000 /* malloced b_data */
|
||||
#define B_CLUSTEROK 0x00020000 /* Pagein op, so swap() can count it. */
|
||||
#define B_PHYS 0x00040000 /* I/O to user memory. */
|
||||
#define B_000400000 0x00040000 /* Available flag. */
|
||||
#define B_000800000 0x00080000 /* Available flag. */
|
||||
#define B_00100000 0x00100000 /* Available flag. */
|
||||
#define B_DIRTY 0x00200000 /* Needs writing later (in EXT2FS). */
|
||||
|
@ -209,7 +209,7 @@ ffs_rawread_readahead(struct vnode *vp,
|
||||
if (iolen != 0)
|
||||
bp->b_bcount -= PAGE_SIZE;
|
||||
}
|
||||
bp->b_flags = B_PHYS;
|
||||
bp->b_flags = 0; /* XXX necessary ? */
|
||||
bp->b_iocmd = BIO_READ;
|
||||
bp->b_iodone = ffs_rawreadwakeup;
|
||||
bp->b_data = udata;
|
||||
|
Loading…
Reference in New Issue
Block a user