summaryrefslogtreecommitdiff
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>1999-06-26 02:47:16 +0000
committerKirk McKusick <mckusick@FreeBSD.org>1999-06-26 02:47:16 +0000
commit67812eacd74d5841e890b703d4ec2d5a76288830 (patch)
treedaad70481467b7aa233a8f5e919b7eec6d7cc908 /sys/nfsserver
parent5a903f8d735f0cc4a378e9f85fa3ad30a675df06 (diff)
downloadsrc-test2-67812eacd74d5841e890b703d4ec2d5a76288830.tar.gz
src-test2-67812eacd74d5841e890b703d4ec2d5a76288830.zip
Notes
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_srvsubs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index cd771555ae85..554e182c1239 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
- * $Id: nfs_subs.c,v 1.75 1999/06/05 05:35:00 peter Exp $
+ * $Id: nfs_subs.c,v 1.76 1999/06/23 04:44:12 julian Exp $
*/
/*
@@ -2188,7 +2188,8 @@ loop:
nvp = vp->v_mntvnodes.le_next;
for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) {
nbp = TAILQ_NEXT(bp, b_vnbufs);
- if ((bp->b_flags & (B_BUSY | B_DELWRI | B_NEEDCOMMIT))
+ if (BUF_REFCNT(bp) == 0 &&
+ (bp->b_flags & (B_DELWRI | B_NEEDCOMMIT))
== (B_DELWRI | B_NEEDCOMMIT))
bp->b_flags &= ~B_NEEDCOMMIT;
}