diff options
author | phk <phk@FreeBSD.org> | 2003-10-18 11:02:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-18 11:02:24 +0000 |
commit | 011e3f22c7a887a108a8b6642229961d4d763312 (patch) | |
tree | fd1cb0a637464ab8fa75cda6b1e1da26d4dbd056 /sys | |
parent | 8b8970c045c3d2c30740162019ec4acaa7f004c4 (diff) | |
download | FreeBSD-src-011e3f22c7a887a108a8b6642229961d4d763312.zip FreeBSD-src-011e3f22c7a887a108a8b6642229961d4d763312.tar.gz |
Initialize bp->b_offset and remove comment about B_PHYS.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/raidframe/rf_freebsdkintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c index 435331d..1713ef0 100644 --- a/sys/dev/raidframe/rf_freebsdkintf.c +++ b/sys/dev/raidframe/rf_freebsdkintf.c @@ -1649,8 +1649,7 @@ InitBP(bp, b_vp, rw_flag, dev, startSect, numSect, buf, cbFunc, cbArg, int logBytesPerSector; struct proc *b_proc; { - /* bp->b_flags = B_PHYS | rw_flag; */ - bp->bio_cmd = rw_flag; /* XXX need B_PHYS here too? */ + bp->bio_cmd = rw_flag; bp->bio_bcount = numSect << logBytesPerSector; #if 0 /* XXX */ bp->bio_bufsize = bp->bio_bcount; @@ -1862,6 +1861,7 @@ raidread_component_label(dev, b_vp, clabel) /* get our ducks in a row for the read */ bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE; + bp->b_offset = RF_COMPONENT_INFO_OFFSET; bp->b_bcount = RF_COMPONENT_INFO_SIZE; bp->b_iocmd = BIO_READ; bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE; @@ -1901,6 +1901,7 @@ raidwrite_component_label(dev, b_vp, clabel) /* get our ducks in a row for the write */ bp->b_flags = 0; bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE; + bp->b_offset = RF_COMPONENT_INFO_OFFSET; bp->b_bcount = RF_COMPONENT_INFO_SIZE; bp->b_iocmd = BIO_WRITE; bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE; |