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