MFC: Don't set the COMPLETE flag in an inodedep structure before the

related inode has been written.

Approved by:	re (scottl)
This commit is contained in:
tegge 2005-08-27 18:40:06 +00:00
parent 8ea046259b
commit df06317979

View File

@ -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.