Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Count vnode arguments correctly.



details:   https://anonhg.NetBSD.org/src/rev/457287f419f7
branches:  trunk
changeset: 823221:457287f419f7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 16 17:18:28 2017 +0000

description:
Count vnode arguments correctly.

Don't count arguments that have WILLRELE/WILLPUT; count arguments
that are struct vnode *.

No functional change currently because it happens that every released
or put vnode argument comes first or after other ones.

diffstat:

 sys/kern/vnode_if.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 5b3b7a77a692 -r 457287f419f7 sys/kern/vnode_if.sh
--- a/sys/kern/vnode_if.sh      Sun Apr 16 16:49:25 2017 +0000
+++ b/sys/kern/vnode_if.sh      Sun Apr 16 17:18:28 2017 +0000
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 "
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.63 2017/04/11 14:29:32 riastradh Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.64 2017/04/16 17:18:28 riastradh Exp $'
 
 # Script to produce VFS front-end sugar.
 #
@@ -370,8 +370,9 @@
                                word = "RELE";
                        }
                        printf(" | VDESC_VP%s_WILL%s", vpnum, word);
+               }
+               if (argtype[i] == "struct vnode *")
                        vpnum++;
-               }
        }
        print ",";
        # vp offsets



Home | Main Index | Thread Index | Old Index