In all such uses of struct buf: 's/b_un.b_addr/b_data/g'

This commit is contained in:
phk 1997-12-02 21:07:20 +00:00
parent bf21e6b4e0
commit a1bfb618d9
40 changed files with 125 additions and 135 deletions

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.104 1997/09/23 22:14:43 gibbs Exp $
* $Id: fd.c,v 1.105 1997/10/19 13:12:02 joerg Exp $
*
*/
@ -1326,7 +1326,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
read = bp->b_flags & B_READ;
format = bp->b_flags & B_FORMAT;
if(format) {
finfo = (struct fd_formb *)bp->b_un.b_addr;
finfo = (struct fd_formb *)bp->b_data;
fd->skip = (char *)&(finfo->fd_formb_cylno(0))
- (char *)finfo;
}
@ -1468,7 +1468,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
}
fd->track = b_cylinder;
isa_dmastart(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmastart(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
sectrac = fd->ft->sectrac;
sec = blknum % (sectrac * fd->ft->heads);
@ -1560,7 +1560,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
/* FALLTHROUGH */
case IOTIMEDOUT:
isa_dmadone(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmadone(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
if (fdc->status[0] & NE7_ST0_IC)
{
@ -1801,7 +1801,7 @@ fdformat(dev, finfo, p)
+ finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE;
bp->b_bcount = sizeof(struct fd_idfield_data) * finfo->fd_formb_nsecs;
bp->b_un.b_addr = (caddr_t)finfo;
bp->b_data = (caddr_t)finfo;
/* now do the format */
fdstrategy(bp);

View File

@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: mcd.c,v 1.94 1997/09/21 21:41:26 gibbs Exp $
* $Id: mcd.c,v 1.95 1997/11/07 08:52:40 phk Exp $
*/
static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@ -1131,7 +1131,7 @@ mcd_doread(int state, struct mcd_mbx *mbxin)
RDELAY_WAITREAD-mbx->count);
got_it:
/* data is ready */
addr = bp->b_un.b_addr + mbx->skip;
addr = bp->b_data + mbx->skip;
outb(port+mcd_ctl2,0x04); /* XXX */
for (i=0; i<mbx->sz; i++)

View File

@ -47,7 +47,7 @@
*
* from: unknown origin, 386BSD 0.1
* From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp
* $Id: nlpt.c,v 1.4 1997/08/28 11:12:08 msmith Exp $
* $Id: nlpt.c,v 1.5 1997/08/29 00:30:11 msmith Exp $
*/
/*
@ -663,7 +663,7 @@ nlptwrite(dev_t dev, struct uio *uio, int ioflag)
sc->sc_state &= ~INTERRUPTED;
while ((n = min(BUFSIZE, uio->uio_resid)) != 0) {
sc->sc_cp = sc->sc_inbuf->b_un.b_addr ;
sc->sc_cp = sc->sc_inbuf->b_data ;
uiomove(sc->sc_cp, n, uio);
sc->sc_xfercnt = n ;
while ((sc->sc_xfercnt > 0)&&(sc->sc_irq & LP_USE_IRQ)) {

View File

@ -41,7 +41,7 @@
*/
/* $Id: scd.c,v 1.32 1997/07/20 14:10:10 bde Exp $ */
/* $Id: scd.c,v 1.33 1997/09/21 21:41:32 gibbs Exp $ */
/* Please send any comments to micke@dynas.se */
@ -955,7 +955,7 @@ scd_doread(int state, struct scd_mbx *mbxin)
got_data:
/* data is ready */
addr = bp->b_un.b_addr + mbx->skip;
addr = bp->b_data + mbx->skip;
write_control(port, CBIT_DATA_READY_CLEAR);
insb(port+IREG_DATA, addr, mbx->sz);

View File

@ -4,7 +4,7 @@
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
*
* $Id$
* $Id: spkr.c,v 1.29 1997/02/22 09:37:11 peter Exp $
*/
#include "speaker.h"
@ -502,7 +502,7 @@ spkrwrite(dev, uio, ioflag)
int error;
n = uio->uio_resid;
cp = spkr_inbuf->b_un.b_addr;
cp = spkr_inbuf->b_data;
error = uiomove(cp, n, uio);
if (!error) {
cp[n] = '\0';

View File

@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: diskslice_machdep.c,v 1.25 1997/04/19 14:14:17 bde Exp $
* $Id: diskslice_machdep.c,v 1.26 1997/09/27 15:34:34 joerg Exp $
*/
#include <stddef.h>
@ -207,7 +207,7 @@ dsinit(dname, dev, strat, lp, sspp)
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
@ -398,7 +398,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
@ -409,7 +409,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
for (dospart = 0,
dp = (struct dos_partition *)(bp->b_un.b_addr + DOSPARTOFF),
dp = (struct dos_partition *)(bp->b_data + DOSPARTOFF),
slice = ssp->dss_nslices, sp = &ssp->dss_slices[slice];
dospart < NDOSPART; dospart++, dp++) {
ext_sizes[dospart] = 0;

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.104 1997/09/23 22:14:43 gibbs Exp $
* $Id: fd.c,v 1.105 1997/10/19 13:12:02 joerg Exp $
*
*/
@ -1326,7 +1326,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
read = bp->b_flags & B_READ;
format = bp->b_flags & B_FORMAT;
if(format) {
finfo = (struct fd_formb *)bp->b_un.b_addr;
finfo = (struct fd_formb *)bp->b_data;
fd->skip = (char *)&(finfo->fd_formb_cylno(0))
- (char *)finfo;
}
@ -1468,7 +1468,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
}
fd->track = b_cylinder;
isa_dmastart(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmastart(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
sectrac = fd->ft->sectrac;
sec = blknum % (sectrac * fd->ft->heads);
@ -1560,7 +1560,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
/* FALLTHROUGH */
case IOTIMEDOUT:
isa_dmadone(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmadone(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
if (fdc->status[0] & NE7_ST0_IC)
{
@ -1801,7 +1801,7 @@ fdformat(dev, finfo, p)
+ finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE;
bp->b_bcount = sizeof(struct fd_idfield_data) * finfo->fd_formb_nsecs;
bp->b_un.b_addr = (caddr_t)finfo;
bp->b_data = (caddr_t)finfo;
/* now do the format */
fdstrategy(bp);

View File

@ -773,7 +773,7 @@ start(struct ctlr *ctlr)
return;
}
ctlr->data = (u_char *)bp->b_un.b_addr;
ctlr->data = (u_char *)bp->b_data;
ctlr->data_end = ctlr->data + bp->b_bcount;
if (ctlr->err)
@ -866,7 +866,7 @@ da_strategy(struct buf *bp, struct ctlr *ctlr)
}
len = bp->b_bcount / 2;
data = (u_char *)bp->b_un.b_addr;
data = (u_char *)bp->b_data;
for (i = 0; i < len; i++)
{
@ -891,7 +891,7 @@ da_strategy(struct buf *bp, struct ctlr *ctlr)
bp_done(bp, EIO);
len = bp->b_bcount;
data = (u_char *)bp->b_un.b_addr;
data = (u_char *)bp->b_data;
for (i = 0; i < len; i++)
{
@ -936,7 +936,7 @@ digital_out_strategy(struct buf *bp, struct ctlr *ctlr)
port = PORTX(ctlr, chan);
len = bp->b_bcount;
data = (u_char *)bp->b_un.b_addr;
data = (u_char *)bp->b_data;
for (i = 0; i < len; i++)
{
@ -964,7 +964,7 @@ digital_in_strategy(struct buf *bp, struct ctlr *ctlr)
port = PORTX(ctlr, chan);
len = bp->b_bcount;
data = (u_char *)bp->b_un.b_addr;
data = (u_char *)bp->b_data;
for (i = 0; i < len; i++)
{

View File

@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
* $Id: lpt.c,v 1.61 1997/07/20 14:10:05 bde Exp $
* $Id: lpt.c,v 1.62 1997/09/02 01:18:18 bde Exp $
*/
/*
@ -718,7 +718,7 @@ lptwrite(dev_t dev, struct uio * uio, int ioflag)
sc->sc_state &= ~INTERRUPTED;
while ((n = min(BUFSIZE, uio->uio_resid)) != 0) {
sc->sc_cp = sc->sc_inbuf->b_un.b_addr ;
sc->sc_cp = sc->sc_inbuf->b_data ;
uiomove(sc->sc_cp, n, uio);
sc->sc_xfercnt = n ;
while ((sc->sc_xfercnt > 0)&&(sc->sc_irq & LP_USE_IRQ)) {

View File

@ -337,7 +337,7 @@ static char MATCDVERSION[]="Version 1(26) 18-Oct-95";
static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV";
/* The proceeding strings may not be changed*/
/* $Id: matcd.c,v 1.29 1997/09/21 21:42:18 gibbs Exp $ */
/* $Id: matcd.c,v 1.30 1997/11/07 08:52:48 phk Exp $ */
/*---------------------------------------------------------------------------
Include declarations
@ -1958,7 +1958,7 @@ static void matcd_blockread(int state)
#ifdef DEBUGIO
printf("matcd%d: Data Phase\n",ldrive);
#endif /*DEBUGIO*/
addr=bp->b_un.b_addr + mbx->skip;
addr=bp->b_data + mbx->skip;
#ifdef DEBUGIO
printf("matcd%d: Xfer Addr %x size %x",
ldrive,(unsigned int)addr,mbx->sz);

View File

@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: mcd.c,v 1.94 1997/09/21 21:41:26 gibbs Exp $
* $Id: mcd.c,v 1.95 1997/11/07 08:52:40 phk Exp $
*/
static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@ -1131,7 +1131,7 @@ mcd_doread(int state, struct mcd_mbx *mbxin)
RDELAY_WAITREAD-mbx->count);
got_it:
/* data is ready */
addr = bp->b_un.b_addr + mbx->skip;
addr = bp->b_data + mbx->skip;
outb(port+mcd_ctl2,0x04); /* XXX */
for (i=0; i<mbx->sz; i++)

View File

@ -41,7 +41,7 @@
*/
/* $Id: scd.c,v 1.32 1997/07/20 14:10:10 bde Exp $ */
/* $Id: scd.c,v 1.33 1997/09/21 21:41:32 gibbs Exp $ */
/* Please send any comments to micke@dynas.se */
@ -955,7 +955,7 @@ scd_doread(int state, struct scd_mbx *mbxin)
got_data:
/* data is ready */
addr = bp->b_un.b_addr + mbx->skip;
addr = bp->b_data + mbx->skip;
write_control(port, CBIT_DATA_READY_CLEAR);
insb(port+IREG_DATA, addr, mbx->sz);

View File

@ -4,7 +4,7 @@
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
*
* $Id$
* $Id: spkr.c,v 1.29 1997/02/22 09:37:11 peter Exp $
*/
#include "speaker.h"
@ -502,7 +502,7 @@ spkrwrite(dev, uio, ioflag)
int error;
n = uio->uio_resid;
cp = spkr_inbuf->b_un.b_addr;
cp = spkr_inbuf->b_data;
error = uiomove(cp, n, uio);
if (!error) {
cp[n] = '\0';

View File

@ -13,7 +13,7 @@
* all derivative works or modified versions.
*
* From: Version 1.9, Mon Oct 9 20:27:42 MSK 1995
* $Id: wcd.c,v 1.47 1997/11/05 21:32:00 sos Exp $
* $Id: wcd.c,v 1.48 1997/11/07 08:52:43 phk Exp $
*/
#include "wdc.h"
@ -660,7 +660,7 @@ static void wcd_start (struct wcd *t)
atapi_request_callback (t->ata, t->unit, ATAPI_READ_BIG, 0,
blkno>>24, blkno>>16, blkno>>8, blkno, 0, nblk>>8, nblk, 0, 0,
0, 0, 0, 0, 0, (u_char*) bp->b_un.b_addr, bp->b_bcount,
0, 0, 0, 0, 0, (u_char*) bp->b_data, bp->b_bcount,
wcd_done, t, bp);
}

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
* $Id: wd.c,v 1.143 1997/11/07 08:52:45 phk Exp $
* $Id: wd.c,v 1.144 1997/11/07 09:20:34 phk Exp $
*/
/* TODO:
@ -864,7 +864,7 @@ wdstart(int ctrlr)
} else {
if((du->dk_flags & DKFL_USEDMA) &&
wddma[du->dk_interface].wdd_dmaverify(du->dk_dmacookie,
(void *)((int)bp->b_un.b_addr +
(void *)((int)bp->b_data +
du->dk_skip * DEV_BSIZE),
du->dk_bc,
bp->b_flags & B_READ)) {
@ -913,7 +913,7 @@ wdstart(int ctrlr)
if ((du->dk_flags & (DKFL_DMA|DKFL_SINGLE)) == DKFL_DMA) {
wddma[du->dk_interface].wdd_dmaprep(du->dk_dmacookie,
(void *)((int)bp->b_un.b_addr +
(void *)((int)bp->b_data +
du->dk_skip * DEV_BSIZE),
du->dk_bc,
bp->b_flags & B_READ);
@ -927,7 +927,7 @@ wdstart(int ctrlr)
#ifdef WDDEBUG
printf("cylin %ld head %ld sector %ld addr %x sts %x\n",
cylin, head, sector,
(int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE,
(int)bp->b_data + du->dk_skip * DEV_BSIZE,
inb(du->dk_altport));
#endif
}
@ -990,11 +990,11 @@ wdstart(int ctrlr)
if (du->dk_flags & DKFL_32BIT)
outsl(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
(count * DEV_BSIZE) / sizeof(long));
else
outsw(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
(count * DEV_BSIZE) / sizeof(short));
du->dk_bc -= DEV_BSIZE * count;
if (du->dk_dkunit >= 0) {
@ -1181,11 +1181,11 @@ wdintr(int unit)
/* suck in data */
if( du->dk_flags & DKFL_32BIT)
insl(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
chk / sizeof(long));
else
insw(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
chk / sizeof(short));
du->dk_bc -= chk;

View File

@ -20,7 +20,7 @@
* the original CMU copyright notice.
*
* Version 1.3, Thu Nov 11 12:09:13 MSK 1993
* $Id: wt.c,v 1.40 1997/07/20 14:10:18 bde Exp $
* $Id: wt.c,v 1.41 1997/08/25 23:31:05 bde Exp $
*
*/
@ -572,7 +572,7 @@ wtstrategy (struct buf *bp)
t->flags &= ~TPEXCEP;
s = splbio ();
if (wtstart (t, bp->b_flags, bp->b_un.b_addr, bp->b_bcount)) {
if (wtstart (t, bp->b_flags, bp->b_data, bp->b_bcount)) {
wtwait (t, 0, (bp->b_flags & B_READ) ? "wtread" : "wtwrite");
bp->b_resid -= t->dmacount;
}

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.104 1997/09/23 22:14:43 gibbs Exp $
* $Id: fd.c,v 1.105 1997/10/19 13:12:02 joerg Exp $
*
*/
@ -1326,7 +1326,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
read = bp->b_flags & B_READ;
format = bp->b_flags & B_FORMAT;
if(format) {
finfo = (struct fd_formb *)bp->b_un.b_addr;
finfo = (struct fd_formb *)bp->b_data;
fd->skip = (char *)&(finfo->fd_formb_cylno(0))
- (char *)finfo;
}
@ -1468,7 +1468,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
}
fd->track = b_cylinder;
isa_dmastart(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmastart(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
sectrac = fd->ft->sectrac;
sec = blknum % (sectrac * fd->ft->heads);
@ -1560,7 +1560,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
/* FALLTHROUGH */
case IOTIMEDOUT:
isa_dmadone(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmadone(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
if (fdc->status[0] & NE7_ST0_IC)
{
@ -1801,7 +1801,7 @@ fdformat(dev, finfo, p)
+ finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE;
bp->b_bcount = sizeof(struct fd_idfield_data) * finfo->fd_formb_nsecs;
bp->b_un.b_addr = (caddr_t)finfo;
bp->b_data = (caddr_t)finfo;
/* now do the format */
fdstrategy(bp);

View File

@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: diskslice_machdep.c,v 1.25 1997/04/19 14:14:17 bde Exp $
* $Id: diskslice_machdep.c,v 1.26 1997/09/27 15:34:34 joerg Exp $
*/
#include <stddef.h>
@ -207,7 +207,7 @@ dsinit(dname, dev, strat, lp, sspp)
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
@ -398,7 +398,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
@ -409,7 +409,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
for (dospart = 0,
dp = (struct dos_partition *)(bp->b_un.b_addr + DOSPARTOFF),
dp = (struct dos_partition *)(bp->b_data + DOSPARTOFF),
slice = ssp->dss_nslices, sp = &ssp->dss_slices[slice];
dospart < NDOSPART; dospart++, dp++) {
ext_sizes[dospart] = 0;

View File

@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: subr_dkbad.c,v 1.6 1997/02/22 09:39:16 peter Exp $
* $Id: subr_dkbad.c,v 1.7 1997/11/24 04:14:21 dyson Exp $
*/
#include <sys/param.h>
@ -123,7 +123,7 @@ readbad144(dev, strat, lp, bdp)
/* If successful, validate, otherwise try another. */
if (biowait(bp) == 0) {
db = (struct dkbad *)(bp->b_un.b_addr);
db = (struct dkbad *)(bp->b_data);
if (db->bt_mbz == 0 && db->bt_flag == DKBAD_MAGIC) {
msg = NULL;
*bdp = *db;

View File

@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
* $Id: vfs_bio.c,v 1.135 1997/11/24 06:18:27 dyson Exp $
* $Id: vfs_bio.c,v 1.136 1997/12/01 19:04:00 dyson Exp $
*/
/*
@ -2233,10 +2233,10 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
"\17locked\16inval\15gathered\14error\13eintr\12done\11dirty"
"\10delwri\7call\6cache\5busy\4bad\3async\2needcommit\1age");
db_printf("b_error = %d, b_bufsize = %ld, b_bcount = %ld, "
"b_resid = %ld\nb_dev = 0x%x, b_un.b_addr = %p, "
"b_resid = %ld\nb_dev = 0x%x, b_data = %p, "
"b_blkno = %d, b_pblkno = %d\n",
bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
bp->b_dev, bp->b_un.b_addr, bp->b_blkno, bp->b_pblkno);
bp->b_dev, bp->b_data, bp->b_blkno, bp->b_pblkno);
if (bp->b_npages) {
int i;
db_printf("b_npages = %d, pages(OBJ, IDX, PA): ", bp->b_npages);

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.24 1997/09/24 08:21:26 kato Exp $
* $Id: fd.c,v 1.25 1997/10/21 09:48:38 kato Exp $
*
*/
@ -1657,7 +1657,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
read = bp->b_flags & B_READ;
format = bp->b_flags & B_FORMAT;
if(format) {
finfo = (struct fd_formb *)bp->b_un.b_addr;
finfo = (struct fd_formb *)bp->b_data;
fd->skip = (char *)&(finfo->fd_formb_cylno(0))
- (char *)finfo;
}
@ -1848,7 +1848,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
#ifdef EPSON_NRDISK
if (fdu != nrdu) {
#endif /* EPSON_NRDISK */
isa_dmastart(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmastart(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
sectrac = fd->ft->sectrac;
sec = blknum % (sectrac * fd->ft->heads);
@ -1933,10 +1933,10 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
nrd_addrset(fdblk * nrdblkn);
while (!nrd_check_ready()) DELAY(1);
if (read) epson_insw(P_NRD_DATA,
bp->b_un.b_addr + fd->skip,
bp->b_data + fd->skip,
fdblk / sizeof(short));
else epson_outsw(P_NRD_DATA,
bp->b_un.b_addr + fd->skip,
bp->b_data + fd->skip,
(format ? bp->b_bcount : fdblk)
/ sizeof(short));
@ -1977,7 +1977,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
#ifdef EPSON_NRDISK
if (fdu != nrdu) {
#endif /* EPSON_NRDISK */
isa_dmadone(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmadone(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
#ifdef EPSON_NRDISK
}
@ -2231,7 +2231,7 @@ fdformat(dev, finfo, p)
+ finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE;
bp->b_bcount = sizeof(struct fd_idfield_data) * finfo->fd_formb_nsecs;
bp->b_un.b_addr = (caddr_t)finfo;
bp->b_data = (caddr_t)finfo;
/* now do the format */
fdstrategy(bp);

View File

@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: atcompat_diskslice.c,v 1.6 1997/04/20 05:16:05 kato Exp $
* $Id: atcompat_diskslice.c,v 1.7 1997/09/28 05:52:50 kato Exp $
*/
/*
@ -220,7 +220,7 @@ atcompat_dsinit(dname, dev, strat, lp, sspp)
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
@ -416,7 +416,7 @@ atcompat_extended(dname, dev, strat, lp, ssp, ext_offset, ext_size,
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
@ -427,7 +427,7 @@ atcompat_extended(dname, dev, strat, lp, ssp, ext_offset, ext_size,
}
for (dospart = 0,
dp = (struct dos_partition *)(bp->b_un.b_addr + DOSPARTOFF),
dp = (struct dos_partition *)(bp->b_data + DOSPARTOFF),
slice = ssp->dss_nslices, sp = &ssp->dss_slices[slice];
dospart < NDOSPART; dospart++, dp++) {
ext_sizes[dospart] = 0;

View File

@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: diskslice_machdep.c,v 1.9 1997/04/20 05:16:06 kato Exp $
* $Id: diskslice_machdep.c,v 1.10 1997/09/28 05:52:51 kato Exp $
*/
/*
@ -271,7 +271,7 @@ dsinit(dname, dev, strat, lp, sspp)
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
@ -575,7 +575,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
/* Weakly verify it. */
cp = bp->b_un.b_addr;
cp = bp->b_data;
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
@ -586,7 +586,7 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
}
for (dospart = 0,
dp = (struct dos_partition *)(bp->b_un.b_addr + DOSPARTOFF),
dp = (struct dos_partition *)(bp->b_data + DOSPARTOFF),
slice = ssp->dss_nslices, sp = &ssp->dss_slices[slice];
dospart < NDOSPART; dospart++, dp++) {
ext_sizes[dospart] = 0;

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.24 1997/09/24 08:21:26 kato Exp $
* $Id: fd.c,v 1.25 1997/10/21 09:48:38 kato Exp $
*
*/
@ -1657,7 +1657,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
read = bp->b_flags & B_READ;
format = bp->b_flags & B_FORMAT;
if(format) {
finfo = (struct fd_formb *)bp->b_un.b_addr;
finfo = (struct fd_formb *)bp->b_data;
fd->skip = (char *)&(finfo->fd_formb_cylno(0))
- (char *)finfo;
}
@ -1848,7 +1848,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
#ifdef EPSON_NRDISK
if (fdu != nrdu) {
#endif /* EPSON_NRDISK */
isa_dmastart(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmastart(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
sectrac = fd->ft->sectrac;
sec = blknum % (sectrac * fd->ft->heads);
@ -1933,10 +1933,10 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
nrd_addrset(fdblk * nrdblkn);
while (!nrd_check_ready()) DELAY(1);
if (read) epson_insw(P_NRD_DATA,
bp->b_un.b_addr + fd->skip,
bp->b_data + fd->skip,
fdblk / sizeof(short));
else epson_outsw(P_NRD_DATA,
bp->b_un.b_addr + fd->skip,
bp->b_data + fd->skip,
(format ? bp->b_bcount : fdblk)
/ sizeof(short));
@ -1977,7 +1977,7 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
#ifdef EPSON_NRDISK
if (fdu != nrdu) {
#endif /* EPSON_NRDISK */
isa_dmadone(bp->b_flags, bp->b_un.b_addr+fd->skip,
isa_dmadone(bp->b_flags, bp->b_data+fd->skip,
format ? bp->b_bcount : fdblk, fdc->dmachan);
#ifdef EPSON_NRDISK
}
@ -2231,7 +2231,7 @@ fdformat(dev, finfo, p)
+ finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE;
bp->b_bcount = sizeof(struct fd_idfield_data) * finfo->fd_formb_nsecs;
bp->b_un.b_addr = (caddr_t)finfo;
bp->b_data = (caddr_t)finfo;
/* now do the format */
fdstrategy(bp);

View File

@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
* $Id: lpt.c,v 1.13 1997/07/21 13:11:06 kato Exp $
* $Id: lpt.c,v 1.14 1997/09/02 10:11:04 kato Exp $
*/
/*
@ -758,7 +758,7 @@ lptwrite(dev_t dev, struct uio * uio, int ioflag)
sc->sc_state &= ~INTERRUPTED;
while ((n = min(BUFSIZE, uio->uio_resid)) != 0) {
sc->sc_cp = sc->sc_inbuf->b_un.b_addr ;
sc->sc_cp = sc->sc_inbuf->b_data ;
uiomove(sc->sc_cp, n, uio);
sc->sc_xfercnt = n ;
while ((sc->sc_xfercnt > 0)&&(sc->sc_irq & LP_USE_IRQ)) {

View File

@ -4,7 +4,7 @@
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
*
* $Id$
* $Id: spkr.c,v 1.8 1997/02/22 09:43:46 peter Exp $
*/
/*
@ -535,7 +535,7 @@ spkrwrite(dev, uio, ioflag)
int error;
n = uio->uio_resid;
cp = spkr_inbuf->b_un.b_addr;
cp = spkr_inbuf->b_data;
error = uiomove(cp, n, uio);
if (!error) {
cp[n] = '\0';

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
* $Id: wd.c,v 1.35 1997/11/04 12:58:48 kato Exp $
* $Id: wd.c,v 1.36 1997/11/07 12:54:01 kato Exp $
*/
/* TODO:
@ -963,7 +963,7 @@ wdstart(int ctrlr)
} else {
if((du->dk_flags & DKFL_USEDMA) &&
wddma[du->dk_interface].wdd_dmaverify(du->dk_dmacookie,
(void *)((int)bp->b_un.b_addr +
(void *)((int)bp->b_data +
du->dk_skip * DEV_BSIZE),
du->dk_bc,
bp->b_flags & B_READ)) {
@ -1012,7 +1012,7 @@ wdstart(int ctrlr)
if ((du->dk_flags & (DKFL_DMA|DKFL_SINGLE)) == DKFL_DMA) {
wddma[du->dk_interface].wdd_dmaprep(du->dk_dmacookie,
(void *)((int)bp->b_un.b_addr +
(void *)((int)bp->b_data +
du->dk_skip * DEV_BSIZE),
du->dk_bc,
bp->b_flags & B_READ);
@ -1026,7 +1026,7 @@ wdstart(int ctrlr)
#ifdef WDDEBUG
printf("cylin %ld head %ld sector %ld addr %x sts ",
cylin, head, sector,
(int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE);
(int)bp->b_data + du->dk_skip * DEV_BSIZE);
if (old_epson_note)
printf("%x\n", epson_inb(du->dk_altport));
else
@ -1092,18 +1092,18 @@ wdstart(int ctrlr)
if (!old_epson_note) {
if (du->dk_flags & DKFL_32BIT)
outsl(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr
(void *)((int)bp->b_data
+ du->dk_skip * DEV_BSIZE),
(count * DEV_BSIZE) / sizeof(long));
else
outsw(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr
(void *)((int)bp->b_data
+ du->dk_skip * DEV_BSIZE),
(count * DEV_BSIZE) / sizeof(short));
}
else
epson_outsw(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
(count * DEV_BSIZE) / sizeof(short));
du->dk_bc -= DEV_BSIZE * count;
@ -1293,11 +1293,11 @@ wdintr(int unit)
/* suck in data */
if( du->dk_flags & DKFL_32BIT)
insl(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
chk / sizeof(long));
else
insw(du->dk_port + wd_data,
(void *)((int)bp->b_un.b_addr + du->dk_skip * DEV_BSIZE),
(void *)((int)bp->b_data + du->dk_skip * DEV_BSIZE),
chk / sizeof(short));
du->dk_bc -= chk;

View File

@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
* $Id: cd.c,v 1.85 1997/09/07 15:06:06 joerg Exp $
* $Id: cd.c,v 1.86 1997/09/21 22:02:59 gibbs Exp $
*/
#include "opt_bounce.h"
@ -540,7 +540,7 @@ cdstart(unit, flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
CDRETRIES,
30000,

View File

@ -28,7 +28,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* $Id: od.c,v 1.31 1997/09/02 20:06:32 bde Exp $
* $Id: od.c,v 1.32 1997/09/21 22:03:01 gibbs Exp $
*/
/*
@ -636,7 +636,7 @@ odstart(u_int32_t unit, u_int32_t flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
OD_RETRIES,
100000,

View File

@ -37,7 +37,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pt.c,v 1.23 1997/09/02 20:06:32 bde Exp $
* $Id: pt.c,v 1.24 1997/09/21 22:03:03 gibbs Exp $
*/
#include "opt_bounce.h"
@ -180,7 +180,7 @@ ptstart(unit, flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
0,
10000,

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*End copyright
*
* $Id: scsi_ioctl.c,v 1.25 1997/03/23 06:33:48 bde Exp $
* $Id: scsi_ioctl.c,v 1.26 1997/09/02 20:06:34 bde Exp $
*
*
*/
@ -215,7 +215,7 @@ scsistrategy(struct buf *bp)
err = scsi_scsi_cmd(sc_link,
(struct scsi_generic *)screq->cmd,
screq->cmdlen,
(u_char *)bp->b_un.b_addr,
(u_char *)bp->b_data,
screq->datalen,
0, /* user must do the retries *//* ignored */
screq->timeout,
@ -314,7 +314,7 @@ struct proc *p, struct scsi_link *sc_link)
minphys, &auio);
} else {
/* if no data, no need to translate it.. */
bp->b_un.b_addr = 0;
bp->b_data = 0;
bp->b_dev = dev;
bp->b_flags |= B_BUSY;

View File

@ -37,7 +37,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sctarg.c,v 1.21 1997/09/02 20:06:36 bde Exp $
* $Id: sctarg.c,v 1.22 1997/09/21 22:03:11 gibbs Exp $
*/
#include "opt_bounce.h"
@ -212,7 +212,7 @@ sctargstart(unit, unused_flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
0,
100000,

View File

@ -15,7 +15,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
*
* $Id: sd.c,v 1.113 1997/11/07 08:53:32 phk Exp $
* $Id: sd.c,v 1.114 1997/11/23 11:30:42 bde Exp $
*/
#include "opt_bounce.h"
@ -614,7 +614,7 @@ sdstart(u_int32_t unit, u_int32_t flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
SD_RETRIES,
10000,

View File

@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: st.c,v 1.82 1997/09/21 22:03:19 gibbs Exp $
* $Id: st.c,v 1.83 1997/11/23 11:56:18 bde Exp $
*/
/*
@ -961,7 +961,7 @@ ststart(unit, flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
0, /* can't retry a read on a tape really */
1000000,

View File

@ -43,7 +43,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: worm.c,v 1.46 1997/09/21 22:03:22 gibbs Exp $
* $Id: worm.c,v 1.47 1997/10/27 21:09:27 jmz Exp $
*/
#include "opt_bounce.h"
@ -386,7 +386,7 @@ wormstart(unit, flags)
if (scsi_scsi_cmd(sc_link,
(struct scsi_generic *) &cmd,
sizeof(cmd),
(u_char *) bp->b_un.b_addr,
(u_char *) bp->b_data,
bp->b_bcount,
0,
100000,

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.42 1997/09/21 22:08:58 gibbs Exp $
* $Id: buf.h,v 1.43 1997/10/23 11:32:06 gibbs Exp $
*/
#ifndef _SYS_BUF_H_
@ -75,9 +75,7 @@ struct buf {
long b_bcount; /* Valid bytes in buffer. */
long b_resid; /* Remaining I/O. */
dev_t b_dev; /* Device associated with buffer. */
struct {
caddr_t b_addr; /* Memory, superblocks, indirect etc. */
} b_un;
caddr_t b_data; /* Memory, superblocks, indirect etc. */
caddr_t b_kvabase; /* base kva for buffer */
int b_kvasize; /* size of kva for buffer */
daddr_t b_lblkno; /* Logical block number. */
@ -107,9 +105,6 @@ struct buf {
int b_npages;
};
/* Device driver compatibility definitions. */
#define b_data b_un.b_addr /* b_un.b_addr is not changeable. */
/*
* These flags are kept in b_flags.
*/

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.42 1997/09/21 22:08:58 gibbs Exp $
* $Id: buf.h,v 1.43 1997/10/23 11:32:06 gibbs Exp $
*/
#ifndef _SYS_BUF_H_
@ -75,9 +75,7 @@ struct buf {
long b_bcount; /* Valid bytes in buffer. */
long b_resid; /* Remaining I/O. */
dev_t b_dev; /* Device associated with buffer. */
struct {
caddr_t b_addr; /* Memory, superblocks, indirect etc. */
} b_un;
caddr_t b_data; /* Memory, superblocks, indirect etc. */
caddr_t b_kvabase; /* base kva for buffer */
int b_kvasize; /* size of kva for buffer */
daddr_t b_lblkno; /* Logical block number. */
@ -107,9 +105,6 @@ struct buf {
int b_npages;
};
/* Device driver compatibility definitions. */
#define b_data b_un.b_addr /* b_un.b_addr is not changeable. */
/*
* These flags are kept in b_flags.
*/

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs_segment.c 8.10 (Berkeley) 6/10/95
* $Id: lfs_segment.c,v 1.24 1997/08/31 07:32:37 phk Exp $
* $Id: lfs_segment.c,v 1.25 1997/10/16 11:58:30 phk Exp $
*/
#include <sys/param.h>
@ -730,7 +730,7 @@ lfs_updatemeta(sp)
printf("lfs: negative bytes (segment %ld)\n",
datosn(fs, daddr));
printf("lfs: bp = 0x%x, addr = 0x%x\n",
bp, bp->b_un.b_addr);
bp, bp->b_data);
panic ("Negative Bytes");
}
#endif

View File

@ -39,7 +39,7 @@
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
* $Id: swap_pager.c,v 1.77 1997/09/01 02:28:32 bde Exp $
* $Id: swap_pager.c,v 1.78 1997/09/01 03:17:13 bde Exp $
*/
/*
@ -1003,7 +1003,7 @@ swap_pager_getpages(object, m, count, reqpage)
bp->b_rcred = bp->b_wcred = bp->b_proc->p_ucred;
crhold(bp->b_rcred);
crhold(bp->b_wcred);
bp->b_un.b_addr = (caddr_t) kva;
bp->b_data = (caddr_t) kva;
bp->b_blkno = reqaddr[0];
bp->b_bcount = PAGE_SIZE * count;
bp->b_bufsize = PAGE_SIZE * count;

View File

@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
* $Id: vnode_pager.c,v 1.74 1997/09/01 03:17:34 bde Exp $
* $Id: vnode_pager.c,v 1.75 1997/10/06 02:38:30 dyson Exp $
*/
/*
@ -495,7 +495,7 @@ vnode_pager_input_smlfs(object, m)
crhold(bp->b_rcred);
if (bp->b_wcred != NOCRED)
crhold(bp->b_wcred);
bp->b_un.b_addr = (caddr_t) kva + i * bsize;
bp->b_data = (caddr_t) kva + i * bsize;
bp->b_blkno = fileaddr;
pbgetvp(dp, bp);
bp->b_bcount = bsize;