aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2001-10-25 19:18:55 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2001-10-25 19:18:55 +0000
commit215cc5a5bfe21111e0dad8d9dabb4b44cb96021b (patch)
tree7f09191ab9347fc244c0bec4d6a49cdc032b8b29 /usr.sbin/pstat
parentedf4589fe68a1581a917fdbd05fac52021e24f86 (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 318fc6f6cc75..8f6964ecf586 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -702,10 +702,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 = mount.mnt_vnodelist.lh_first;
+ for (vp = TAILQ_FIRST(&mount.mnt_nvnodelist);
vp != NULL; vp = vp_next) {
KGET2(vp, &vnode, sizeof(vnode), "vnode");
- vp_next = vnode.v_mntvnodes.le_next;
+ vp_next = TAILQ_NEXT(&vnode, v_nmntvnodes);
if ((bp + VPTRSZ + VNODESZ) > evbuf)
/* XXX - should realloc */
errx(1, "no more room for vnodes");