summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>1999-05-09 19:39:54 +0000
committermckusick <mckusick@FreeBSD.org>1999-05-09 19:39:54 +0000
commit81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e (patch)
tree1a99c8312d1dfd1c287479f72faeaee8a13b1713 /sys/contrib
parent96c746be96f084c069edb754cfbba627ed3893e5 (diff)
downloadFreeBSD-src-81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e.zip
FreeBSD-src-81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e.tar.gz
Put back changes that might be causing trouble on Alpha.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/softupdates/ffs_softdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c
index ada9c8c..ff36319 100644
--- a/sys/contrib/softupdates/ffs_softdep.c
+++ b/sys/contrib/softupdates/ffs_softdep.c
@@ -53,7 +53,7 @@
* SUCH DAMAGE.
*
* from: @(#)ffs_softdep.c 9.36 (McKusick) 5/6/99
- * $Id: ffs_softdep.c,v 1.25 1999/05/07 02:26:47 mckusick Exp $
+ * $Id: ffs_softdep.c,v 1.26 1999/05/07 05:11:31 mckusick Exp $
*/
/*
@@ -492,10 +492,11 @@ add_to_worklist(wk)
if (wk->wk_state & ONWORKLIST)
panic("add_to_worklist: already on list");
wk->wk_state |= ONWORKLIST;
- if (LIST_FIRST(&softdep_workitem_pending) == NULL)
+ if (LIST_FIRST(&softdep_workitem_pending) == NULL) {
LIST_INSERT_HEAD(&softdep_workitem_pending, wk, wk_list);
- else
+ } else {
LIST_INSERT_AFTER(worklist_tail, wk, wk_list);
+ }
worklist_tail = wk;
}
@@ -3699,6 +3700,7 @@ softdep_sync_metadata(ap)
waitfor = MNT_NOWAIT;
top:
if (getdirtybuf(&TAILQ_FIRST(&vp->v_dirtyblkhd), MNT_WAIT) == 0) {
+ drain_output(vp, 1);
FREE_LOCK(&lk);
return (0);
}
OpenPOWER on IntegriCloud