diff options
author | green <green@FreeBSD.org> | 2000-04-26 11:57:45 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-04-26 11:57:45 +0000 |
commit | 6bad412525aca72f3c4b4d706db249c402952055 (patch) | |
tree | cc8b18ca8a121d2db24fa3bdfc4f4d04970aaba6 /sys/sys | |
parent | 9bef7c0136ba2ed59a50715ad48c304dc5ebdfb1 (diff) | |
download | FreeBSD-src-6bad412525aca72f3c4b4d706db249c402952055.zip FreeBSD-src-6bad412525aca72f3c4b4d706db249c402952055.tar.gz |
Move procfs_fullpath() to vfs_cache.c, with a rename to textvp_fullpath().
There's no excuse to have code in synthetic filestores that allows direct
references to the textvp anymore.
Feature requested by: msmith
Feature agreed to by: warner
Move requested by: phk
Move agreed to by: bde
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/vnode.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 38cddb9..4938dca 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -74,24 +74,7 @@ enum vtagtype { TAILQ_HEAD(buflists, buf); typedef int vop_t __P((void *)); - -/* - * This structure describes the elements in the cache of recent - * names looked up by namei. - */ - -struct vnode; - -struct namecache { - LIST_ENTRY(namecache) nc_hash; /* hash chain */ - LIST_ENTRY(namecache) nc_src; /* source vnode list */ - TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */ - struct vnode *nc_dvp; /* vnode of parent of name */ - struct vnode *nc_vp; /* vnode the name refers to */ - u_char nc_flag; /* flag bits */ - u_char nc_nlen; /* length of name */ - char nc_name[0]; /* segment name */ -}; +struct namecache; /* * Reading or writing any of these items requires holding the appropriate lock. @@ -567,6 +550,7 @@ int getnewvnode __P((enum vtagtype tag, int lease_check __P((struct vop_lease_args *ap)); int spec_vnoperate __P((struct vop_generic_args *)); int speedup_syncer __P((void)); +int textvp_fullpath __P((struct proc *p, char **retbuf, char **retfreebuf)); void vattr_null __P((struct vattr *vap)); int vcount __P((struct vnode *vp)); void vdrop __P((struct vnode *)); |