diff options
author | tegge <tegge@FreeBSD.org> | 2005-08-21 18:19:06 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2005-08-21 18:19:06 +0000 |
commit | 5e1fb20fd40185ccd1e5c6d04372feffde0fe832 (patch) | |
tree | 36178aa0c363eda4eec15ce8b6b6e801679d20af /sys/ufs/ffs | |
parent | aee0040df6519bf287e966fc182aa13284f4420d (diff) | |
download | FreeBSD-src-5e1fb20fd40185ccd1e5c6d04372feffde0fe832.zip FreeBSD-src-5e1fb20fd40185ccd1e5c6d04372feffde0fe832.tar.gz |
Don't set the COMPLETE flag in an inodedep structure before the related
inode has been written.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 319b6d0..9aa2313 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. |