mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 23:52:49 +00:00
Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
we no longer pass thread pointer to VOP_UNLOCK().
This commit is contained in:
parent
0454fe84e4
commit
e15d7a0b4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204065
@ -894,10 +894,7 @@ loop:
|
||||
error = VOP_FSYNC(vp, waitfor, td);
|
||||
if (error)
|
||||
allerror = error;
|
||||
|
||||
/* Do not turn this into vput. td is not always curthread. */
|
||||
VOP_UNLOCK(vp, 0);
|
||||
vrele(vp);
|
||||
vput(vp);
|
||||
MNT_ILOCK(mp);
|
||||
}
|
||||
MNT_IUNLOCK(mp);
|
||||
|
Loading…
Reference in New Issue
Block a user