change "nextvnodeid" from a global in namei.h to a static in

the one function that uses it.
This commit is contained in:
chs 2000-04-16 21:41:49 +00:00
parent d0fb21715e
commit 9431f1857b
2 changed files with 3 additions and 3 deletions

View File

@ -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 * Copyright (c) 1989, 1993
@ -416,6 +416,7 @@ cache_purge(vp)
{ {
struct namecache *ncp; struct namecache *ncp;
struct nchashhead *ncpp; struct nchashhead *ncpp;
static u_long nextvnodeid;
vp->v_id = ++nextvnodeid; vp->v_id = ++nextvnodeid;
if (nextvnodeid != 0) if (nextvnodeid != 0)

View File

@ -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 * Copyright (c) 1985, 1989, 1991, 1993
@ -174,7 +174,6 @@ struct namecache {
}; };
#ifdef _KERNEL #ifdef _KERNEL
u_long nextvnodeid;
int namei __P((struct nameidata *ndp)); int namei __P((struct nameidata *ndp));
int lookup __P((struct nameidata *ndp)); int lookup __P((struct nameidata *ndp));
int relookup __P((struct vnode *dvp, struct vnode **vpp, int relookup __P((struct vnode *dvp, struct vnode **vpp,