diff options
author | phk <phk@FreeBSD.org> | 1999-11-20 10:00:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-20 10:00:46 +0000 |
commit | 1adcecffd93c2f4536a5031426a753b1218ed88a (patch) | |
tree | c111db9be70768372eebad9bfc9cbe47bb8a0a9d /sys/ufs/ffs | |
parent | 5354776cb2ed414ffde1c1fe64dec67336140a07 (diff) | |
download | FreeBSD-src-1adcecffd93c2f4536a5031426a753b1218ed88a.zip FreeBSD-src-1adcecffd93c2f4536a5031426a753b1218ed88a.tar.gz |
struct mountlist and struct mount.mnt_list have no business being
a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively.
This removes ugly mp != (void*)&mountlist comparisons.
Requested by: phk
Submitted by: Jake Burkholder jake@checker.org
PR: 14967
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 207f3ca..5d7f766 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -4363,8 +4363,7 @@ clear_inodedeps(p) * Ugly code to find mount point given pointer to superblock. */ fs = inodedep->id_fs; - for (mp = CIRCLEQ_FIRST(&mountlist); mp != (void *)&mountlist; - mp = CIRCLEQ_NEXT(mp, mnt_list)) + TAILQ_FOREACH(mp, &mountlist, mnt_list) if ((mp->mnt_flag & MNT_SOFTDEP) && fs == VFSTOUFS(mp)->um_fs) break; /* |