summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-10-25 20:12:53 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-10-25 20:12:53 +0000
commit7136d42b9d29115c9d50c03be7b9e22df8d2d2fe (patch)
tree2de1165a0ec9acc93b17176d2ce9a40d6cb7461c /sys
parent727940407bdd0eb4c00789c3544f59c0ecdf676f (diff)
Correctly remove elements from a pagedep dirrem list.
Issued noted and fix okay'd by otto@.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index a0e65ebe638..c98d0cbc643 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep.c,v 1.63 2005/09/26 21:11:09 pedro Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.64 2005/10/25 20:12:52 pedro Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
*
@@ -2102,7 +2102,7 @@ deallocate_dependencies(bp, inodedep)
* If the inode has already been written, then they
* can be dumped directly onto the work list.
*/
- LIST_FOREACH(dirrem, &pagedep->pd_dirremhd, dm_next) {
+ while ((dirrem = LIST_FIRST(&pagedep->pd_dirremhd))) {
LIST_REMOVE(dirrem, dm_next);
dirrem->dm_dirinum = pagedep->pd_ino;
if (inodedep == NULL ||