From 8ef35acf90b37c2fc5b567eccaa3778f363d41a0 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 31 Oct 1998 15:31:29 +0000 Subject: Use TAILQ macros for clean/dirty block list processing. Set b_xflags rather than abusing the list next pointer with a magic number. --- sys/nfs/nfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/nfs/nfs_vfsops.c') diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 23e30c0..eb379b5 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95 - * $Id: nfs_vfsops.c,v 1.76 1998/09/07 13:17:05 bde Exp $ + * $Id: nfs_vfsops.c,v 1.77 1998/09/29 23:15:53 mckusick Exp $ */ #include @@ -1066,7 +1066,7 @@ loop: */ if (vp->v_mount != mp) goto loop; - if (VOP_ISLOCKED(vp) || vp->v_dirtyblkhd.lh_first == NULL || + if (VOP_ISLOCKED(vp) || TAILQ_EMPTY(&vp->v_dirtyblkhd) || waitfor == MNT_LAZY) continue; if (vget(vp, LK_EXCLUSIVE, p)) -- cgit v1.1