diff options
author | Sebastien Roy <seb@delphix.com> | 2017-04-27 22:46:23 -0700 |
---|---|---|
committer | Prakash Surya <prakash.surya@delphix.com> | 2017-05-16 02:07:25 -0700 |
commit | ade42b557a6e29c3d17a61b1535d99af10e379be (patch) | |
tree | d78d4019b4d8ff987fb90f8c24ad8e135624b6ea /usr/src/uts/common/fs/devfs/devfs_vnops.c | |
parent | fe4627ef755b7c263f91a0e6f07cdca5d7083501 (diff) | |
download | illumos-joyent-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/devfs/devfs_vnops.c')
-rw-r--r-- | usr/src/uts/common/fs/devfs/devfs_vnops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/uts/common/fs/devfs/devfs_vnops.c b/usr/src/uts/common/fs/devfs/devfs_vnops.c index 0c5114066b..1ab460d071 100644 --- a/usr/src/uts/common/fs/devfs/devfs_vnops.c +++ b/usr/src/uts/common/fs/devfs/devfs_vnops.c @@ -20,6 +20,7 @@ */ /* * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017 by Delphix. All rights reserved. */ /* @@ -105,7 +106,7 @@ devfs_close(struct vnode *vp, int flag, int count, /*ARGSUSED*/ static int devfs_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, - struct caller_context *ct) + struct caller_context *ct) { dcmn_err2(("devfs_read %s\n", VTODV(vp)->dv_name)); ASSERT(vp->v_type == VDIR); @@ -120,7 +121,7 @@ devfs_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, /*ARGSUSED*/ static int devfs_write(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, - struct caller_context *ct) + struct caller_context *ct) { dcmn_err2(("devfs_write %s\n", VTODV(vp)->dv_name)); ASSERT(vp->v_type == VDIR); @@ -1053,7 +1054,7 @@ devfs_inactive(struct vnode *vp, struct cred *cred, caller_context_t *ct) dcmn_err2(("devfs_inactive: %s\n", dv->dv_name)); mutex_enter(&vp->v_lock); ASSERT(vp->v_count >= 1); - --vp->v_count; + VN_RELE_LOCKED(vp); destroy = (DV_STALE(dv) && vp->v_count == 0); mutex_exit(&vp->v_lock); |