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

View File

@ -894,10 +894,7 @@ vfs_stdsync(mp, waitfor)
error = VOP_FSYNC(vp, waitfor, td); error = VOP_FSYNC(vp, waitfor, td);
if (error) if (error)
allerror = error; allerror = error;
vput(vp);
/* Do not turn this into vput. td is not always curthread. */
VOP_UNLOCK(vp, 0);
vrele(vp);
MNT_ILOCK(mp); MNT_ILOCK(mp);
} }
MNT_IUNLOCK(mp); MNT_IUNLOCK(mp);