Remove replace phygetvpbuf() with direct call to getpbuf();

This commit is contained in:
Poul-Henning Kamp 1999-09-12 08:27:41 +00:00
parent c4da3dcc64
commit f5756ee9f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51197

View File

@ -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;