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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to