Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/ptyfs No need to call spec_inactive() from ptyfs_inca...



details:   https://anonhg.NetBSD.org/src/rev/5786cd188d6a
branches:  trunk
changeset: 809181:5786cd188d6a
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Jun 23 10:41:06 2015 +0000

description:
No need to call spec_inactive() from ptyfs_incative().

diffstat:

 sys/fs/ptyfs/ptyfs_vnops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 478abb3a27c0 -r 5786cd188d6a sys/fs/ptyfs/ptyfs_vnops.c
--- a/sys/fs/ptyfs/ptyfs_vnops.c        Tue Jun 23 10:40:36 2015 +0000
+++ b/sys/fs/ptyfs/ptyfs_vnops.c        Tue Jun 23 10:41:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptyfs_vnops.c,v 1.50 2014/08/21 06:40:35 maxv Exp $    */
+/*     $NetBSD: ptyfs_vnops.c,v 1.51 2015/06/23 10:41:06 hannken Exp $ */
 
 /*
  * Copyright (c) 1993, 1995
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_vnops.c,v 1.50 2014/08/21 06:40:35 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_vnops.c,v 1.51 2015/06/23 10:41:06 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -242,7 +242,8 @@
 
        if (ptyfs->ptyfs_type == PTYFSptc)
                ptyfs_clr_active(vp->v_mount, ptyfs->ptyfs_pty);
-       return spec_inactive(v);
+       VOP_UNLOCK(vp);
+       return 0;
 }
 
 /*



Home | Main Index | Thread Index | Old Index