Module Name: src
Committed By: hannken
Date: Wed Apr 12 10:23:35 UTC 2017
Modified Files:
src/sys/kern: vfs_trans.c
Log Message:
Switch fstrans_dump() to _mountlist_next().
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/kern/vfs_trans.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_trans.c
diff -u src/sys/kern/vfs_trans.c:1.40 src/sys/kern/vfs_trans.c:1.41
--- src/sys/kern/vfs_trans.c:1.40 Thu Mar 30 09:13:01 2017
+++ src/sys/kern/vfs_trans.c Wed Apr 12 10:23:35 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_trans.c,v 1.40 2017/03/30 09:13:01 hannken Exp $ */
+/* $NetBSD: vfs_trans.c,v 1.41 2017/04/12 10:23:35 hannken Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.40 2017/03/30 09:13:01 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.41 2017/04/12 10:23:35 hannken Exp $");
/*
* File system transaction operations.
@@ -871,7 +871,7 @@ fstrans_dump(int full)
fstrans_print_lwp(p, l, full == 1);
printf("Fstrans state by mount:\n");
- TAILQ_FOREACH(mp, &mountlist, mnt_list)
+ for (mp = _mountlist_next(NULL); mp; mp = _mountlist_next(mp))
fstrans_print_mount(mp, full == 1);
}
#endif /* defined(DDB) */