summaryrefslogtreecommitdiffstats
path: root/sys/fs
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 /sys/fs
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 'sys/fs')
-rw-r--r--sys/fs/coda/coda_subr.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c6
-rw-r--r--sys/fs/nwfs/nwfs_vfsops.c4
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c4
-rw-r--r--sys/fs/unionfs/union_vfsops.c2
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/fs/coda/coda_subr.c b/sys/fs/coda/coda_subr.c
index 21dc937..026d957 100644
--- a/sys/fs/coda/coda_subr.c
+++ b/sys/fs/coda/coda_subr.c
@@ -312,10 +312,10 @@ coda_checkunmounting(mp)
struct cnode *cp;
int count = 0, bad = 0;
loop:
- for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp; vp = nvp) {
+ for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp; vp = nvp) {
if (vp->v_mount != mp)
goto loop;
- nvp = LIST_NEXT(vp, v_mntvnodes);
+ nvp = TAILQ_NEXT(vp, v_nmntvnodes);
cp = VTOC(vp);
count++;
if (!(cp->c_flags & C_UNMOUNTING)) {
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index cd1e404..ca5a9ca 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -176,7 +176,7 @@ msdosfs_mountroot()
mp = malloc((u_long)sizeof(struct mount), M_MOUNT, M_WAITOK | M_ZERO);
mp->mnt_op = &msdosfs_vfsops;
mp->mnt_flag = 0;
- LIST_INIT(&mp->mnt_vnodelist);
+ TAILQ_INIT(&mp->mnt_nvnodelist);
args.flags = 0;
args.uid = 0;
@@ -859,14 +859,14 @@ msdosfs_sync(mp, waitfor, cred, td)
*/
mtx_lock(&mntvnode_mtx);
loop:
- for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nvp) {
+ for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nvp) {
/*
* If the vnode that we are about to sync is no longer
* associated with this mount point, start over.
*/
if (vp->v_mount != mp)
goto loop;
- nvp = LIST_NEXT(vp, v_mntvnodes);
+ nvp = TAILQ_NEXT(vp, v_nmntvnodes);
mtx_unlock(&mntvnode_mtx);
mtx_lock(&vp->v_interlock);
diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c
index de5ae2f..119a163 100644
--- a/sys/fs/nwfs/nwfs_vfsops.c
+++ b/sys/fs/nwfs/nwfs_vfsops.c
@@ -479,7 +479,7 @@ nwfs_sync(mp, waitfor, cred, td)
*/
mtx_lock(&mntvnode_mtx);
loop:
- for (vp = LIST_FIRST(&mp->mnt_vnodelist);
+ for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist);
vp != NULL;
vp = nvp) {
/*
@@ -488,7 +488,7 @@ loop:
*/
if (vp->v_mount != mp)
goto loop;
- nvp = LIST_NEXT(vp, v_mntvnodes);
+ nvp = TAILQ_NEXT(vp, v_nmntvnodes);
mtx_unlock(&mntvnode_mtx);
mtx_lock(&vp->v_interlock);
if (VOP_ISLOCKED(vp, NULL) || TAILQ_EMPTY(&vp->v_dirtyblkhd) ||
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c
index b5196c0..d06f7bf 100644
--- a/sys/fs/smbfs/smbfs_vfsops.c
+++ b/sys/fs/smbfs/smbfs_vfsops.c
@@ -434,9 +434,9 @@ smbfs_sync(mp, waitfor, cred, p)
* Force stale buffer cache information to be flushed.
*/
loop:
- for (vp = mp->mnt_vnodelist.lh_first;
+ for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist);
vp != NULL;
- vp = vp->v_mntvnodes.le_next) {
+ vp = TAILQ_NEXT(vp, v_nmntvnodes)) {
/*
* If the vnode that we are about to sync is no longer
* associated with this mount point, start over.
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 53c5ae6..7f3d5bd 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -333,7 +333,7 @@ union_unmount(mp, mntflags, td)
/* count #vnodes held on mount list */
mtx_lock(&mntvnode_mtx);
n = 0;
- LIST_FOREACH(vp, &mp->mnt_vnodelist, v_mntvnodes)
+ TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes)
n++;
mtx_unlock(&mntvnode_mtx);
OpenPOWER on IntegriCloud