From 6ccbd3a7209f2032efc661deda8d8172ff345d05 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 12 Sep 1999 08:27:41 +0000 Subject: Remove replace phygetvpbuf() with direct call to getpbuf(); --- sys/kern/kern_physio.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'sys/kern/kern_physio.c') 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 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; -- cgit v1.1