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:
Pawel Jakub Dawidek 2010-02-18 22:14:44 +00:00
parent 0454fe84e4
commit e15d7a0b4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204065

View File

@ -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);