summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_vfsops.c
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/smbfs/smbfs_vfsops.c
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/smbfs/smbfs_vfsops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
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.
OpenPOWER on IntegriCloud