summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/lofs/lofs_subr.c
diff options
context:
space:
mode:
authorSebastien Roy <seb@delphix.com>2017-04-27 22:46:23 -0700
committerPrakash Surya <prakash.surya@delphix.com>2017-05-16 02:07:25 -0700
commitade42b557a6e29c3d17a61b1535d99af10e379be (patch)
treed78d4019b4d8ff987fb90f8c24ad8e135624b6ea /usr/src/uts/common/fs/lofs/lofs_subr.c
parentfe4627ef755b7c263f91a0e6f07cdca5d7083501 (diff)
downloadillumos-gate-ade42b557a6e29c3d17a61b1535d99af10e379be.tar.gz
8064 need a static DTrace probe in VN_HOLD
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Prashanth Sreenivasa <pks@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/fs/lofs/lofs_subr.c')
-rw-r--r--usr/src/uts/common/fs/lofs/lofs_subr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/uts/common/fs/lofs/lofs_subr.c b/usr/src/uts/common/fs/lofs/lofs_subr.c
index 433a76d789..3f9cd6e5de 100644
--- a/usr/src/uts/common/fs/lofs/lofs_subr.c
+++ b/usr/src/uts/common/fs/lofs/lofs_subr.c
@@ -22,6 +22,9 @@
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2017 by Delphix. All rights reserved.
+ */
/*
* The idea behind composition-based stacked filesystems is to add a
@@ -656,7 +659,7 @@ freelonode(lnode_t *lp)
mutex_enter(&vp->v_lock);
if (vp->v_count > 1) {
- vp->v_count--; /* release our hold from vn_rele */
+ VN_RELE_LOCKED(vp);
mutex_exit(&vp->v_lock);
TABLE_LOCK_EXIT(lp->lo_vp, li);
return;
@@ -759,10 +762,8 @@ static int lofsdebug;
#ifdef LODEBUG
/*VARARGS2*/
-lo_dprint(level, str, a1, a2, a3, a4, a5, a6, a7, a8, a9)
- int level;
- char *str;
- int a1, a2, a3, a4, a5, a6, a7, a8, a9;
+lo_dprint(int level, char *str, int a1, int a2, int a3, int a4, int a5, int a6,
+ int a7, int a8, int a9)
{
if (lofsdebug == level || (lofsdebug > 10 && (lofsdebug - 10) >= level))