From df06317979235cbe7581e4eeb36ab59bda55a4a0 Mon Sep 17 00:00:00 2001 From: tegge Date: Sat, 27 Aug 2005 18:40:06 +0000 Subject: [PATCH] MFC: Don't set the COMPLETE flag in an inodedep structure before the related inode has been written. Approved by: re (scottl) --- sys/ufs/ffs/ffs_softdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 319b6d03c6f7..9aa23133d7b5 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -4270,7 +4270,6 @@ handle_written_inodeblock(inodedep, bp) if ((inodedep->id_state & IOSTARTED) == 0) panic("handle_written_inodeblock: not started"); inodedep->id_state &= ~IOSTARTED; - inodedep->id_state |= COMPLETE; if (inodedep->id_fs->fs_magic == FS_UFS1_MAGIC) { fstype = UFS1; dp1 = (struct ufs1_dinode *)bp->b_data + @@ -4299,6 +4298,7 @@ handle_written_inodeblock(inodedep, bp) bdirty(bp); return (1); } + inodedep->id_state |= COMPLETE; /* * Roll forward anything that had to be rolled back before * the inode could be updated.