summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_common.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_common.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_common.c')
-rw-r--r--sys/nfs/nfs_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index 346e9e6..0e964cb 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
- * $Id: nfs_subs.c,v 1.64 1998/09/05 15:17:33 bde Exp $
+ * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde Exp $
*/
/*
@@ -2129,8 +2129,8 @@ loop:
if (vp->v_mount != mp) /* Paranoia */
goto loop;
nvp = vp->v_mntvnodes.le_next;
- for (bp = vp->v_dirtyblkhd.lh_first; bp; bp = nbp) {
- nbp = bp->b_vnbufs.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))
== (B_DELWRI | B_NEEDCOMMIT))
bp->b_flags &= ~B_NEEDCOMMIT;
OpenPOWER on IntegriCloud