diff options
author | peter <peter@FreeBSD.org> | 1999-06-28 15:32:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-06-28 15:32:10 +0000 |
commit | bbe9a3f06ff147f9f39b42ff8a352f6551d2bbaa (patch) | |
tree | 8c2a24d252450e7026c4c35c81deef0224c49dab /sys/kern | |
parent | 836f488cc527928b0c7611bd8a1c9d5a767f6c95 (diff) | |
download | FreeBSD-src-bbe9a3f06ff147f9f39b42ff8a352f6551d2bbaa.zip FreeBSD-src-bbe9a3f06ff147f9f39b42ff8a352f6551d2bbaa.tar.gz |
Fix a bug that was almost certainly making breadn() fail. BUF_KERNPROC()
was being called on the wrong bp - it should be called on the one that's
just about to be fed to VOP_STRATEGY().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index fbb3786..3c5024e 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -11,7 +11,7 @@ * 2. Absolutely no warranty of function or purpose is made by the author * John S. Dyson. * - * $Id: vfs_bio.c,v 1.216 1999/06/26 02:46:06 mckusick Exp $ + * $Id: vfs_bio.c,v 1.217 1999/06/26 14:46:35 peter Exp $ */ /* @@ -464,7 +464,7 @@ breadn(struct vnode * vp, daddr_t blkno, int size, rabp->b_rcred = cred; } vfs_busy_pages(rabp, 0); - BUF_KERNPROC(bp); + BUF_KERNPROC(rabp); VOP_STRATEGY(vp, rabp); } else { brelse(rabp); |