diff options
author | dg <dg@FreeBSD.org> | 1995-08-11 11:31:18 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-11 11:31:18 +0000 |
commit | 5b4b2700156e17277dc3f54ff56323643525c977 (patch) | |
tree | e6c236fd414cfab792be9688579fe9d84d9da396 /sys/ufs | |
parent | 9463cb81fa4bab9dd21af4e0815371adad5af21e (diff) | |
download | FreeBSD-src-5b4b2700156e17277dc3f54ff56323643525c977.zip FreeBSD-src-5b4b2700156e17277dc3f54ff56323643525c977.tar.gz |
Converted mountlist to a CIRCLEQ.
Partially obtained from: 4.4BSD-Lite2
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/ufs/lfs/lfs_bio.c | 4 | ||||
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 52657be..19c78cf 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94 - * $Id: ffs_vfsops.c,v 1.25 1995/07/21 16:20:20 davidg Exp $ + * $Id: ffs_vfsops.c,v 1.26 1995/08/06 11:56:42 davidg Exp $ */ #include <sys/param.h> @@ -125,7 +125,7 @@ ffs_mountroot() free(mp, M_MOUNT); return (error); } - TAILQ_INSERT_TAIL(&mountlist, mp, mnt_list); + CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list); mp->mnt_flag |= MNT_ROOTFS; mp->mnt_vnodecovered = NULLVP; ump = VFSTOUFS(mp); diff --git a/sys/ufs/lfs/lfs_bio.c b/sys/ufs/lfs/lfs_bio.c index 9344dbb..b1388d1 100644 --- a/sys/ufs/lfs/lfs_bio.c +++ b/sys/ufs/lfs/lfs_bio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)lfs_bio.c 8.4 (Berkeley) 12/30/93 - * $Id: lfs_bio.c,v 1.4 1994/08/20 03:49:01 davidg Exp $ + * $Id: lfs_bio.c,v 1.5 1994/10/10 01:04:49 phk Exp $ */ #include <sys/param.h> @@ -142,7 +142,7 @@ lfs_flush() if (lfs_writing) return; lfs_writing = 1; - for (mp = mountlist.tqh_first; mp != NULL; mp = mp->mnt_list.tqe_next) { + for (mp = mountlist.cqh_first; mp != (void *)&mountlist; mp = mp->mnt_list.cqe_next) { /* The lock check below is to avoid races with unmount. */ if (mp->mnt_stat.f_type == MOUNT_LFS && (mp->mnt_flag & (MNT_MLOCK|MNT_RDONLY|MNT_UNMOUNT)) == 0 && diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index e491fe1..db2cbff 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mfs_vfsops.c 8.4 (Berkeley) 4/16/94 - * $Id: mfs_vfsops.c,v 1.8 1995/05/19 03:27:01 davidg Exp $ + * $Id: mfs_vfsops.c,v 1.9 1995/05/29 03:27:37 phk Exp $ */ #include <sys/param.h> @@ -129,7 +129,7 @@ mfs_mountroot() free(mfsp, M_MFSNODE); return (error); } - TAILQ_INSERT_TAIL(&mountlist, mp, mnt_list); + CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list); mp->mnt_flag |= MNT_ROOTFS; mp->mnt_vnodecovered = NULLVP; ump = VFSTOUFS(mp); |