Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs clear_inodedeps(): use CIRCLEQ_FOREACH() appropr...
details: https://anonhg.NetBSD.org/src/rev/7bb761d4628e
branches: trunk
changeset: 533000:7bb761d4628e
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Jun 18 20:24:31 2002 +0000
description:
clear_inodedeps(): use CIRCLEQ_FOREACH() appropriately
diffstat:
sys/ufs/ffs/ffs_softdep.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 527c796ed0dd -r 7bb761d4628e sys/ufs/ffs/ffs_softdep.c
--- a/sys/ufs/ffs/ffs_softdep.c Tue Jun 18 20:23:08 2002 +0000
+++ b/sys/ufs/ffs/ffs_softdep.c Tue Jun 18 20:24:31 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_softdep.c,v 1.31 2002/03/18 13:38:52 wiz Exp $ */
+/* $NetBSD: ffs_softdep.c,v 1.32 2002/06/18 20:24:31 jdolecek Exp $ */
/*
* Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_softdep.c,v 1.31 2002/03/18 13:38:52 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_softdep.c,v 1.32 2002/06/18 20:24:31 jdolecek Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -5055,10 +5055,11 @@
* 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))
+ CIRCLEQ_FOREACH(mp, &mountlist, mnt_list) {
if ((mp->mnt_flag & MNT_SOFTDEP) && fs == VFSTOUFS(mp)->um_fs)
break;
+ }
+
/*
* Find the last inode in the block with dependencies.
*/
Home |
Main Index |
Thread Index |
Old Index