Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 update to match with the recent reality. PR/...
details: https://anonhg.NetBSD.org/src/rev/6dcccd7b2f11
branches: trunk
changeset: 572272:6dcccd7b2f11
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Dec 28 18:36:45 2004 +0000
description:
update to match with the recent reality. PR/28793.
diffstat:
share/man/man9/namecache.9 | 7 ++++---
share/man/man9/vnode.9 | 30 ++++++++++++++----------------
2 files changed, 18 insertions(+), 19 deletions(-)
diffs (96 lines):
diff -r d021dffd9579 -r 6dcccd7b2f11 share/man/man9/namecache.9
--- a/share/man/man9/namecache.9 Tue Dec 28 17:56:40 2004 +0000
+++ b/share/man/man9/namecache.9 Tue Dec 28 18:36:45 2004 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: namecache.9,v 1.8 2003/04/16 13:35:31 wiz Exp $
+.\" $NetBSD: namecache.9,v 1.9 2004/12/28 18:36:45 yamt Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -95,10 +95,11 @@
LIST_ENTRY(namecache) nc_hash; /* hash chain */
TAILQ_ENTRY(namecache) nc_lru; /* LRU chain */
LIST_ENTRY(namecache) nc_vhash; /* directory hash chain */
+ LIST_ENTRY(namecache) nc_dvlist;
struct vnode *nc_dvp; /* vnode of parent of name */
- u_long nc_dvpid; /* capability number of nc_dvp */
+ LIST_ENTRY(namecache) nc_vlist;
struct vnode *nc_vp; /* vnode the name refers to */
- u_long nc_vpid; /* capability number of nc_vp */
+ int nc_flags; /* copy of componentname's ISWHITEOUT */
char nc_nlen; /* length of name */
char nc_name[NCHNAMLEN]; /* segment name */
};
diff -r d021dffd9579 -r 6dcccd7b2f11 share/man/man9/vnode.9
--- a/share/man/man9/vnode.9 Tue Dec 28 17:56:40 2004 +0000
+++ b/share/man/man9/vnode.9 Tue Dec 28 18:36:45 2004 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: vnode.9,v 1.22 2004/05/26 23:00:32 wiz Exp $
+.\" $NetBSD: vnode.9,v 1.23 2004/12/28 18:36:45 yamt Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -157,8 +157,6 @@
int v_numoutput; /* num pending writes */
long v_writecount; /* ref count of writers */
long v_holdcnt; /* page \*[Am] buffer refs */
- daddr_t v_lastr; /* last read */
- u_long v_id; /* capability id */
struct mount *v_mount; /* ptr to vfs we are in */
int (**v_op)(void *); /* vnode ops vector */
TAILQ_ENTRY(vnode) v_freelist; /* vnode freelist */
@@ -166,6 +164,8 @@
struct buflists v_cleanblkhd; /* clean blocklist head */
struct buflists v_dirtyblkhd; /* dirty blocklist head */
LIST_ENTRY(vnode) v_synclist; /* dirty vnodes */
+ LIST_HEAD(, namecache) v_dnclist; /* namecaches for children */
+ LIST_HEAD(, namecache) v_nclist; /* namecaches for our parent */
union {
struct mount *vu_mountedhere;/* ptr to mounted vfs */
struct socket *vu_socket; /* unix ipc (VSOCK) */
@@ -182,6 +182,10 @@
struct lock v_lock; /* lock for this vnode */
struct lock *v_vnlock; /* ptr to vnode lock */
void *v_data; /* private data for fs */
+ struct klist v_klist; /* knotes attached to vnode */
+#ifdef VERIFIED_EXEC
+ char fp_status; /* fingerprint status */
+#endif
};
.Ed
.Pp
@@ -305,18 +309,14 @@
It does not track the number of dirty buffers attached to the
vnode.
.Pp
-Every time a vnode is reassigned to a new file, the vnode capability
-identifier
-.Em v_id
-is changed.
-It is used to maintain the name lookup cache consistency by providing
-a unique \*[Lt]vnode *,v_id\*[Gt] tuple without requiring the cache to
-hold a reference.
-The name lookup cache can later compare the vnode's capability identifier
-to its copy and see if the vnode still points to the same file.
-See
+.Em v_dnclist
+and
+.Em v_nclist
+are used by
.Xr namecache 9
-for details on the name lookup cache.
+to maintain the list of associated entries so that
+.Xr cache_purge 9
+can purge them.
.Pp
The link to the file system which owns the vnode is recorded by
.Em v_mount .
@@ -341,8 +341,6 @@
.Em v_freelist .
The vnodes still reference valid files but may be reused to refer to a
new file at any time.
-Often, these vnodes are also held in caches in the system, such as
-the name lookup cache.
When a valid vnode which is on the freelist is used again, the user
must call
.Fn vget
Home |
Main Index |
Thread Index |
Old Index