aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2001-10-23 01:21:29 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2001-10-23 01:21:29 +0000
commitc72ccd014de73fd63ea50101bc509fbd889a7dd5 (patch)
tree6c2bc2719e857145710103bb0268efdc6adaad5c /usr.sbin/pstat
parent2716f76b14f17624d0c9c1343a75c8713bb21f5e (diff)
Notes
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index cb7e404ff96f..b0a5db9f242b 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -693,10 +693,10 @@ kinfo_vnodes(avnodes)
for (num = 0, mp = TAILQ_FIRST(&mountlist); ; mp = mp_next) {
KGET2(mp, &mount, sizeof(mount), "mount entry");
mp_next = TAILQ_NEXT(&mount, mnt_list);
- for (vp = LIST_FIRST(&mount.mnt_vnodelist);
+ for (vp = TAILQ_FIRST(&mount.mnt_nvnodelist);
vp != NULL; vp = vp_next) {
KGET2(vp, &vnode, sizeof(vnode), "vnode");
- vp_next = LIST_NEXT(&vnode, v_mntvnodes);
+ vp_next = TAILQ_NEXT(&vnode, v_nmntvnodes);
if ((bp + VPTRSZ + VNODESZ) > evbuf)
/* XXX - should realloc */
errx(1, "no more room for vnodes");