summaryrefslogtreecommitdiffstats
path: root/sys/fs/specfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 11:06:15 +0000
committerphk <phk@FreeBSD.org>2003-10-18 11:06:15 +0000
commit7279dea9d58cab07cda558d87a324cf930c1d69d (patch)
treed972b866c7baf7d8d3327f9499575826d8a172c9 /sys/fs/specfs
parent011e3f22c7a887a108a8b6642229961d4d763312 (diff)
downloadFreeBSD-src-7279dea9d58cab07cda558d87a324cf930c1d69d.zip
FreeBSD-src-7279dea9d58cab07cda558d87a324cf930c1d69d.tar.gz
Initialize b_offset before calling VOP_STRATEGY/VOP_SPECSTRATEGY.
Remove various comments of KASSERTS and comments about B_PHYS which does not apply anymore.
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r--sys/fs/specfs/spec_vnops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index 8b5d2a5..bde0786 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -730,7 +730,6 @@ spec_getpages(ap)
bp->b_iocmd = BIO_READ;
bp->b_iodone = bdone;
- /* B_PHYS is not set, but it is nice to fill this in. */
KASSERT(bp->b_rcred == NOCRED, ("leaking read ucred"));
KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
bp->b_rcred = crhold(curthread->td_ucred);
OpenPOWER on IntegriCloud