diff options
author | phk <phk@FreeBSD.org> | 2000-12-31 10:24:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-31 10:24:19 +0000 |
commit | 5de479435ac7f4124fce758194096f1de151aea4 (patch) | |
tree | 813f80c517df66e8f82e6918c023a148c604421e /sys/fs | |
parent | bd55e14c5922b012035bc431a015ea47974d76b7 (diff) | |
download | FreeBSD-src-5de479435ac7f4124fce758194096f1de151aea4.zip FreeBSD-src-5de479435ac7f4124fce758194096f1de151aea4.tar.gz |
Use macro API to <sys/queue.h>
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 30b5522..d116328 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -865,7 +865,7 @@ msdosfs_sync(mp, waitfor, cred, p) */ simple_lock(&mntvnode_slock); loop: - for (vp = mp->mnt_vnodelist.lh_first; vp != NULL; vp = nvp) { + for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nvp) { /* * If the vnode that we are about to sync is no longer * associated with this mount point, start over. @@ -874,7 +874,7 @@ loop: goto loop; mtx_enter(&vp->v_interlock, MTX_DEF); - nvp = vp->v_mntvnodes.le_next; + nvp = LIST_NEXT(vp, v_mntvnodes); dep = VTODE(vp); if (vp->v_type == VNON || ((dep->de_flag & diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index 05ad13a..27e3707 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -823,7 +823,7 @@ procfs_readdir(ap) struct proc *p; ALLPROC_LOCK(AP_SHARED); - p = allproc.lh_first; + p = LIST_FIRST(&allproc); for (; p && uio->uio_resid >= delen; i++, pcnt++) { bzero((char *) dp, delen); dp->d_reclen = delen; @@ -847,7 +847,7 @@ procfs_readdir(ap) default: while (pcnt < i) { - p = p->p_list.le_next; + p = LIST_NEXT(p, p_list); if (!p) goto done; if (p_can(curproc, p, P_CAN_SEE, NULL)) @@ -855,7 +855,7 @@ procfs_readdir(ap) pcnt++; } while (p_can(curproc, p, P_CAN_SEE, NULL)) { - p = p->p_list.le_next; + p = LIST_NEXT(p, p_list); if (!p) goto done; } @@ -863,7 +863,7 @@ procfs_readdir(ap) dp->d_namlen = sprintf(dp->d_name, "%ld", (long)p->p_pid); dp->d_type = DT_DIR; - p = p->p_list.le_next; + p = LIST_NEXT(p, p_list); break; } |