summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-10-31 15:31:29 +0000
committerpeter <peter@FreeBSD.org>1998-10-31 15:31:29 +0000
commit8ef35acf90b37c2fc5b567eccaa3778f363d41a0 (patch)
tree1f2cdd6ce7e2fb30893bb1cea70630fd7c6edb14 /sys/nfs/nfs_vfsops.c
parentb7f6f55ecf024f827ab5fb630a1826c0133aab0a (diff)
downloadFreeBSD-src-8ef35acf90b37c2fc5b567eccaa3778f363d41a0.zip
FreeBSD-src-8ef35acf90b37c2fc5b567eccaa3778f363d41a0.tar.gz
Use TAILQ macros for clean/dirty block list processing. Set b_xflags
rather than abusing the list next pointer with a magic number.
Diffstat (limited to 'sys/nfs/nfs_vfsops.c')
-rw-r--r--sys/nfs/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/param.h>
@@ -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))
OpenPOWER on IntegriCloud