diff options
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index f76a94c..24fb157 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -677,9 +677,9 @@ kinfo_vnodes(avnodes) bp = vbuf; evbuf = vbuf + (numvnodes + 20) * (VPTRSZ + VNODESZ); KGET(V_MOUNTLIST, mountlist); - for (num = 0, mp = mountlist.cqh_first; ; mp = mp_next) { + for (num = 0, mp = TAILQ_FIRST(&mountlist); ; mp = mp_next) { KGET2(mp, &mount, sizeof(mount), "mount entry"); - mp_next = mount.mnt_list.cqe_next; + mp_next = TAILQ_NEXT(&mount, mnt_list); for (vp = mount.mnt_vnodelist.lh_first; vp != NULL; vp = vp_next) { KGET2(vp, &vnode, sizeof(vnode), "vnode"); @@ -693,7 +693,7 @@ kinfo_vnodes(avnodes) bp += VNODESZ; num++; } - if (mp == mountlist.cqh_last) + if (mp == TAILQ_LAST(&mountlist, mntlist)) break; } *avnodes = num; |