diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-12 08:27:41 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-12 08:27:41 +0000 |
| commit | f5756ee9f57230e7e242f6344ce4624080f87001 (patch) | |
| tree | d662394084ab66469e78fd24eee03f29886b52c2 | |
| parent | c4da3dcc646db1b5e910502bebb87f0fd843d7aa (diff) | |
Notes
| -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 69130d68e995..cc436bff4ed4 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; |
