mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00:00
MFC: Don't set the COMPLETE flag in an inodedep structure before the
related inode has been written.
This commit is contained in:
parent
2d0a65fb58
commit
0b22bdff85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/3/; revision=149520
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user