aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2005-08-26 20:40:31 +0000
committerTor Egge <tegge@FreeBSD.org>2005-08-26 20:40:31 +0000
commit0b22bdff854f0537b495a9f5f5cd86d8bbed0214 (patch)
tree65cb081c26e8e19a2b4d099a84eaa6ba93a07bfc
parent2d0a65fb5823f4a5e277a0133f8f21bba2a67b48 (diff)
downloadsrc-0b22bdff854f0537b495a9f5f5cd86d8bbed0214.tar.gz
src-0b22bdff854f0537b495a9f5f5cd86d8bbed0214.zip
MFC: Don't set the COMPLETE flag in an inodedep structure before the
related inode has been written.
Notes
Notes: svn path=/stable/3/; revision=149520
-rw-r--r--sys/ufs/ffs/ffs_softdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 908041f0b2fd..6bb1fa49c968 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -3096,7 +3096,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;
dp = (struct dinode *)bp->b_data +
ino_to_fsbo(inodedep->id_fs, inodedep->id_ino);
/*
@@ -3113,6 +3112,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.