diff options
author | mckusick <mckusick@FreeBSD.org> | 1999-05-09 19:39:54 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 1999-05-09 19:39:54 +0000 |
commit | 81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e (patch) | |
tree | 1a99c8312d1dfd1c287479f72faeaee8a13b1713 /sys/ufs | |
parent | 96c746be96f084c069edb754cfbba627ed3893e5 (diff) | |
download | FreeBSD-src-81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e.zip FreeBSD-src-81c1d3f4c6f3f0dcb719616e43e48c3b8d72888e.tar.gz |
Put back changes that might be causing trouble on Alpha.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index ada9c8c..ff36319 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/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); } |