Fix cut&paste bug which would result in a panic because buffer was

being biodone'ed multiple times.
This commit is contained in:
phk 2003-01-05 22:01:08 +00:00
parent 4729095883
commit 929abdfa18

View File

@ -724,9 +724,9 @@ breadn(struct vnode * vp, daddr_t blkno, int size,
vfs_busy_pages(rabp, 0);
BUF_KERNPROC(rabp);
if (vp->v_type == VCHR)
VOP_SPECSTRATEGY(vp, bp);
VOP_SPECSTRATEGY(vp, rabp);
else
VOP_STRATEGY(vp, bp);
VOP_STRATEGY(vp, rabp);
} else {
brelse(rabp);
}