svn commit: r204065 - head/sys/kern
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Feb 18 22:14:45 UTC 2010
Author: pjd
Date: Thu Feb 18 22:14:44 2010
New Revision: 204065
URL: http://svn.freebsd.org/changeset/base/204065
Log:
Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
we no longer pass thread pointer to VOP_UNLOCK().
Modified:
head/sys/kern/vfs_default.c
Modified: head/sys/kern/vfs_default.c
==============================================================================
--- head/sys/kern/vfs_default.c Thu Feb 18 22:12:40 2010 (r204064)
+++ head/sys/kern/vfs_default.c Thu Feb 18 22:14:44 2010 (r204065)
@@ -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);
More information about the svn-src-head
mailing list