From e15d7a0b4c9dedf7232fb10f5265f0b1479b737e Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 18 Feb 2010 22:14:44 +0000 Subject: [PATCH] Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated, we no longer pass thread pointer to VOP_UNLOCK(). --- sys/kern/vfs_default.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index b80d03d0e9ec..50bf0d2be0d2 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -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);