Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 fix open-coded mountlist scan



details:   https://anonhg.NetBSD.org/src/rev/5f91434510e8
branches:  trunk
changeset: 791567:5f91434510e8
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 23 20:53:46 2013 +0000

description:
fix open-coded mountlist scan

diffstat:

 sys/compat/netbsd32/netbsd32_compat_20.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e9bfa4d56e86 -r 5f91434510e8 sys/compat/netbsd32/netbsd32_compat_20.c
--- a/sys/compat/netbsd32/netbsd32_compat_20.c  Sat Nov 23 19:40:11 2013 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_20.c  Sat Nov 23 20:53:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_20.c,v 1.29 2013/11/23 16:15:24 riz Exp $      */
+/*     $NetBSD: netbsd32_compat_20.c,v 1.30 2013/11/23 20:53:46 christos Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_20.c,v 1.29 2013/11/23 16:15:24 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_20.c,v 1.30 2013/11/23 20:53:46 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -102,7 +102,7 @@
        sfsp = SCARG_P32(uap, buf);
        mutex_enter(&mountlist_lock);
        count = 0;
-       for (mp = mountlist.tqh_first; mp != (void *)&mountlist; mp = nmp) {
+       for (mp = TAILQ_FIRST(&mountlist); mp != TAILQ_END(&mountlist); mp = nmp) {
                if (vfs_busy(mp, &nmp)) {
                        continue;
                }



Home | Main Index | Thread Index | Old Index