Source-Changes-HG archive

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

[src/trunk]: src/sys Eliminate now-unused WILLUNLOCK vop flag.



details:   https://anonhg.NetBSD.org/src/rev/00467396b530
branches:  trunk
changeset: 823070:00467396b530
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 11 14:29:32 2017 +0000

description:
Eliminate now-unused WILLUNLOCK vop flag.

diffstat:

 sys/kern/vnode_if.sh           |  10 ++--------
 sys/miscfs/genfs/genfs_vnops.c |   7 ++-----
 sys/sys/vnode.h                |   6 +-----
 3 files changed, 5 insertions(+), 18 deletions(-)

diffs (82 lines):

diff -r f23149236953 -r 00467396b530 sys/kern/vnode_if.sh
--- a/sys/kern/vnode_if.sh      Tue Apr 11 14:29:23 2017 +0000
+++ b/sys/kern/vnode_if.sh      Tue Apr 11 14:29:32 2017 +0000
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 "
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.62 2017/02/22 09:45:51 hannken Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.63 2017/04/11 14:29:32 riastradh Exp $'
 
 # Script to produce VFS front-end sugar.
 #
@@ -136,10 +136,6 @@
            $3 == "WILLRELE") {
                willrele[argc] = 1;
                i++;
-       } else if ($2 == "WILLUNLOCK" ||
-                  $3 == "WILLUNLOCK") {
-               willrele[argc] = 2;
-               i++;
        } else if ($2 == "WILLPUT" ||
                   $3 == "WILLPUT") {
                willrele[argc] = 3;
@@ -368,9 +364,7 @@
        vpnum = 0;
        for (i=0; i<argc; i++) {
                if (willrele[i]) {
-                       if (willrele[i] == 2) {
-                               word = "UNLOCK";
-                       } else if (willrele[i] == 3) {
+                       if (willrele[i] == 3) {
                                word = "PUT";
                        } else {
                                word = "RELE";
diff -r f23149236953 -r 00467396b530 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c    Tue Apr 11 14:29:23 2017 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c    Tue Apr 11 14:29:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_vnops.c,v 1.194 2017/03/30 09:16:52 hannken Exp $        */
+/*     $NetBSD: genfs_vnops.c,v 1.195 2017/04/11 14:29:32 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.194 2017/03/30 09:16:52 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.195 2017/04/11 14:29:32 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -227,9 +227,6 @@
                                        vp_last = vp;
                                }
                                break;
-                       case VDESC_VP0_WILLUNLOCK:
-                               VOP_UNLOCK(vp);
-                               break;
                        case VDESC_VP0_WILLRELE:
                                vrele(vp);
                                break;
diff -r f23149236953 -r 00467396b530 sys/sys/vnode.h
--- a/sys/sys/vnode.h   Tue Apr 11 14:29:23 2017 +0000
+++ b/sys/sys/vnode.h   Tue Apr 11 14:29:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.276 2017/04/11 06:47:25 riastradh Exp $    */
+/*     $NetBSD: vnode.h,v 1.277 2017/04/11 14:29:32 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -379,10 +379,6 @@
 #define        VDESC_VP1_WILLRELE      0x00000002
 #define        VDESC_VP2_WILLRELE      0x00000004
 #define        VDESC_VP3_WILLRELE      0x00000008
-#define        VDESC_VP0_WILLUNLOCK    0x00000100
-#define        VDESC_VP1_WILLUNLOCK    0x00000200
-#define        VDESC_VP2_WILLUNLOCK    0x00000400
-#define        VDESC_VP3_WILLUNLOCK    0x00000800
 #define        VDESC_VP0_WILLPUT       0x00000101
 #define        VDESC_VP1_WILLPUT       0x00000202
 #define        VDESC_VP2_WILLPUT       0x00000404



Home | Main Index | Thread Index | Old Index