summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commitfc2ffbe6040d6630a06229c5c9be77601fb635eb (patch)
tree328f91e23b34b382d998fba4c7e55796b240b62b /sys/miscfs
parentef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff)
Notes
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c2
-rw-r--r--sys/miscfs/nullfs/null_subr.c2
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c2
-rw-r--r--sys/miscfs/umapfs/umap_subr.c2
-rw-r--r--sys/miscfs/union/union_vfsops.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 4a8f0614c5c8..c6bb2d6104f0 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -106,7 +106,7 @@ fdesc_allocvp(ftype, ix, mp, vpp, p)
fc = FD_NHASH(ix);
loop:
- for (fd = fc->lh_first; fd != 0; fd = fd->fd_hash.le_next) {
+ LIST_FOREACH(fd, fc, fd_hash) {
if (fd->fd_ix == ix && fd->fd_vnode->v_mount == mp) {
if (vget(fd->fd_vnode, 0, p))
goto loop;
diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c
index 68b043199de2..fe5f98881bb7 100644
--- a/sys/miscfs/nullfs/null_subr.c
+++ b/sys/miscfs/nullfs/null_subr.c
@@ -121,7 +121,7 @@ null_node_find(mp, lowervp)
hd = NULL_NHASH(lowervp);
loop:
lockmgr(&null_hashlock, LK_EXCLUSIVE, NULL, p);
- for (a = hd->lh_first; a != 0; a = a->null_hash.le_next) {
+ LIST_FOREACH(a, hd, null_hash) {
if (a->null_lowervp == lowervp && NULLTOV(a)->v_mount == mp) {
vp = NULLTOV(a);
lockmgr(&null_hashlock, LK_RELEASE, NULL, p);
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 27e37071c554..28319661976e 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -875,7 +875,7 @@ procfs_readdir(ap)
#ifdef PROCFS_ZOMBIE
if (p == 0 && doingzomb == 0) {
doingzomb = 1;
- p = zombproc.lh_first;
+ p = LIST_FIRST(&zombproc);
goto again;
}
#endif
diff --git a/sys/miscfs/umapfs/umap_subr.c b/sys/miscfs/umapfs/umap_subr.c
index a04b13259784..9b9806e3345b 100644
--- a/sys/miscfs/umapfs/umap_subr.c
+++ b/sys/miscfs/umapfs/umap_subr.c
@@ -157,7 +157,7 @@ umap_node_find(mp, targetvp)
*/
hd = UMAP_NHASH(targetvp);
loop:
- for (a = hd->lh_first; a != 0; a = a->umap_hash.le_next) {
+ LIST_FOREACH(a, hd, umap_hash) {
if (a->umap_lowervp == targetvp &&
a->umap_vnode->v_mount == mp) {
vp = UMAPTOV(a);
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index 94cba850703f..dfa6eae70098 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -337,9 +337,9 @@ union_unmount(mp, mntflags, p)
int n;
/* count #vnodes held on mount list */
- for (n = 0, vp = mp->mnt_vnodelist.lh_first;
+ for (n = 0, vp = LIST_FIRST(&mp->mnt_vnodelist);
vp != NULLVP;
- vp = vp->v_mntvnodes.le_next)
+ vp = LIST_NEXT(vp, v_mntvnodes))
n++;
/* if this is unchanged then stop */