Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern one more *_END(head) -> NULL



details:   https://anonhg.NetBSD.org/src/rev/eeac65cb5b2d
branches:  trunk
changeset: 791646:eeac65cb5b2d
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 27 17:25:46 2013 +0000

description:
one more *_END(head) -> NULL

diffstat:

 sys/kern/vfs_mount.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ff19810a87b3 -r eeac65cb5b2d sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c      Wed Nov 27 17:24:43 2013 +0000
+++ b/sys/kern/vfs_mount.c      Wed Nov 27 17:25:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_mount.c,v 1.24 2013/11/23 13:35:36 christos Exp $  */
+/*     $NetBSD: vfs_mount.c,v 1.25 2013/11/27 17:25:46 christos Exp $  */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.24 2013/11/23 13:35:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.25 2013/11/27 17:25:46 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -456,7 +456,7 @@
         */
        mutex_enter(&mntvnode_lock);
        for (vp = TAILQ_FIRST(&mp->mnt_vnodelist);
-           vp != TAILQ_END(&mp->mnt_nodelist);
+           vp != NULL;
            vp = vflushnext(mvp, &when)) {
                vmark(mvp, vp);
                if (vp->v_mount != mp || vismarker(vp))
@@ -866,7 +866,7 @@
        mutex_enter(&mountlist_lock);
        TAILQ_REMOVE(&mountlist, mp, mnt_list);
        mutex_exit(&mountlist_lock);
-       if (TAILQ_FIRST(&mp->mnt_vnodelist) != TAILQ_END(&mp->mnt_vnodelist))
+       if (TAILQ_FIRST(&mp->mnt_vnodelist) != NULL)
                panic("unmount: dangling vnode");
        if (used_syncer)
                mutex_exit(&syncer_mutex);



Home | Main Index | Thread Index | Old Index