mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
ffs_syncvnode: only clear IN_NEEDSYNC after successfull sync
(cherry picked from commit 1de1e2bfbf)
This commit is contained in:
parent
ed06398293
commit
861d47845f
1 changed files with 2 additions and 1 deletions
|
|
@ -257,7 +257,6 @@ ffs_syncvnode(struct vnode *vp, int waitfor, int flags)
|
|||
bool still_dirty, unlocked, wait;
|
||||
|
||||
ip = VTOI(vp);
|
||||
ip->i_flag &= ~IN_NEEDSYNC;
|
||||
bo = &vp->v_bufobj;
|
||||
ump = VFSTOUFS(vp->v_mount);
|
||||
|
||||
|
|
@ -445,6 +444,8 @@ next:
|
|||
}
|
||||
if (error == 0 && unlocked)
|
||||
error = ERELOOKUP;
|
||||
if (error == 0)
|
||||
ip->i_flag &= ~IN_NEEDSYNC;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue