change "nextvnodeid" from a global in namei.h to a static in
the one function that uses it.
This commit is contained in:
parent
d0fb21715e
commit
9431f1857b
@ -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 @@ cache_purge(vp)
|
||||
{
|
||||
struct namecache *ncp;
|
||||
struct nchashhead *ncpp;
|
||||
static u_long nextvnodeid;
|
||||
|
||||
vp->v_id = ++nextvnodeid;
|
||||
if (nextvnodeid != 0)
|
||||
|
@ -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 @@ struct namecache {
|
||||
};
|
||||
|
||||
#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,
|
||||
|
Loading…
Reference in New Issue
Block a user