summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-23 01:21:29 +0000
committerdillon <dillon@FreeBSD.org>2001-10-23 01:21:29 +0000
commit45a6fabe87ae3342c49f2e351d044e60daf8dfb3 (patch)
tree6c2bc2719e857145710103bb0268efdc6adaad5c /usr.sbin/pstat
parentceeb7e9e8ead9a5f69302ca1bcb726654c49b035 (diff)
downloadFreeBSD-src-45a6fabe87ae3342c49f2e351d044e60daf8dfb3.zip
FreeBSD-src-45a6fabe87ae3342c49f2e351d044e60daf8dfb3.tar.gz
Change the vnode list under the mount point from a LIST to a TAILQ
in preparation for an implementation of limiting code for kern.maxvnodes. MFC after: 3 days
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 cb7e404..b0a5db9 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");
OpenPOWER on IntegriCloud