diff options
author | phk <phk@FreeBSD.org> | 1999-09-12 08:27:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-12 08:27:41 +0000 |
commit | 6ccbd3a7209f2032efc661deda8d8172ff345d05 (patch) | |
tree | cbdbef277e7d3ca59e73cfc8a29b7f333d0147d3 /sys/kern | |
parent | e28590ebe4d8c90b20a3a622b45988861956d0a3 (diff) | |
download | FreeBSD-src-6ccbd3a7209f2032efc661deda8d8172ff345d05.zip FreeBSD-src-6ccbd3a7209f2032efc661deda8d8172ff345d05.tar.gz |
Remove replace phygetvpbuf() with direct call to getpbuf();
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_physio.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 69130d6..cc436bf 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -30,7 +30,6 @@ #include <vm/vm_extern.h> static void physwakeup __P((struct buf *bp)); -static struct buf * phygetvpbuf(dev_t dev, int resid); int physread(dev_t dev, struct uio *uio, int ioflag) @@ -67,7 +66,7 @@ physio(bp, dev, rw, minp, uio) PHOLD(curproc); /* create and build a buffer header for a transfer */ - bpa = (struct buf *)phygetvpbuf(dev, uio->uio_resid); + bpa = getpbuf(NULL); if (!bp_alloc) BUF_LOCK(bp, LK_EXCLUSIVE); else @@ -195,23 +194,6 @@ minphys(bp) return bp->b_bcount; } -struct buf * -phygetvpbuf(dev_t dev, int resid) -{ - struct cdevsw *bdsw; - int maxio; - - bdsw = devsw(dev); - if ((bdsw == NULL) || (bdsw->d_bmaj == -1)) - return getpbuf(NULL); - - maxio = bdsw->d_maxio; - if (resid > maxio) - resid = maxio; - - return getpbuf(NULL); -} - static void physwakeup(bp) struct buf *bp; |