Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Update comments
details: https://anonhg.NetBSD.org/src/rev/5b2101873574
branches: trunk
changeset: 970445:5b2101873574
user: ad <ad%NetBSD.org@localhost>
date: Mon Mar 23 23:28:11 2020 +0000
description:
Update comments
diffstat:
sys/sys/namei.src | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r f97fe6ab4d28 -r 5b2101873574 sys/sys/namei.src
--- a/sys/sys/namei.src Mon Mar 23 22:29:23 2020 +0000
+++ b/sys/sys/namei.src Mon Mar 23 23:28:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namei.src,v 1.51 2020/03/23 18:41:40 ad Exp $ */
+/* $NetBSD: namei.src,v 1.52 2020/03/23 23:28:11 ad Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
@@ -208,16 +208,15 @@
* Field markings and their corresponding locks:
*
* - stable throught the lifetime of the namecache entry
- * d protected by nc_dvp->vi_ncdlock
- * v protected by nc_dvp->vi_ncvlock
+ * d protected by nc_dvp->vi_nc_lock
+ * v protected by nc_vp->vi_nc_listlock
* l protected by cache_lru_lock
- * u accesses are unlocked, no serialization applied
*/
struct nchnode;
struct namecache {
struct rb_node nc_tree; /* d red-black tree, must be first */
- uint64_t nc_key; /* - hash key */
- TAILQ_ENTRY(namecache) nc_list; /* v vp's list of cache entries */
+ uint64_t nc_key; /* - hashed key value */
+ TAILQ_ENTRY(namecache) nc_list; /* v nc_vp's list of cache entries */
TAILQ_ENTRY(namecache) nc_lru; /* l pseudo-lru chain */
struct vnode *nc_dvp; /* - vnode of parent of name */
struct vnode *nc_vp; /* - vnode the name refers to */
Home |
Main Index |
Thread Index |
Old Index