Source-Changes-HG archive

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

[src/trunk]: src/sys change "nextvnodeid" from a global in namei.h to a stati...



details:   https://anonhg.NetBSD.org/src/rev/9aa9102dadcb
branches:  trunk
changeset: 485016:9aa9102dadcb
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Apr 16 21:41:49 2000 +0000

description:
change "nextvnodeid" from a global in namei.h to a static in
the one function that uses it.

diffstat:

 sys/kern/vfs_cache.c |  3 ++-
 sys/sys/namei.h      |  3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 89c4eb741551 -r 9aa9102dadcb sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Sun Apr 16 21:39:57 2000 +0000
+++ b/sys/kern/vfs_cache.c      Sun Apr 16 21:41:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.24 2000/04/16 21:39:57 chs Exp $       */
+/*     $NetBSD: vfs_cache.c,v 1.25 2000/04/16 21:41:49 chs Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -416,6 +416,7 @@
 {
        struct namecache *ncp;
        struct nchashhead *ncpp;
+       static u_long nextvnodeid;
 
        vp->v_id = ++nextvnodeid;
        if (nextvnodeid != 0)
diff -r 89c4eb741551 -r 9aa9102dadcb sys/sys/namei.h
--- a/sys/sys/namei.h   Sun Apr 16 21:39:57 2000 +0000
+++ b/sys/sys/namei.h   Sun Apr 16 21:41:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: namei.h,v 1.17 1999/08/30 14:55:24 jdolecek Exp $      */
+/*     $NetBSD: namei.h,v 1.18 2000/04/16 21:41:50 chs Exp $   */
 
 /*
  * Copyright (c) 1985, 1989, 1991, 1993
@@ -174,7 +174,6 @@
 };
 
 #ifdef _KERNEL
-u_long nextvnodeid;
 int    namei __P((struct nameidata *ndp));
 int    lookup __P((struct nameidata *ndp));
 int    relookup __P((struct vnode *dvp, struct vnode **vpp,



Home | Main Index | Thread Index | Old Index