Module Name:    src
Committed By:   ad
Date:           Mon Mar 23 23:28:11 UTC 2020

Modified Files:
        src/sys/sys: namei.src

Log Message:
Update comments


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/sys/namei.src

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/namei.src
diff -u src/sys/sys/namei.src:1.51 src/sys/sys/namei.src:1.52
--- src/sys/sys/namei.src:1.51	Mon Mar 23 18:41:40 2020
+++ src/sys/sys/namei.src	Mon Mar 23 23:28:11 2020
@@ -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 @@ NAMEIFL	PARAMASK	0x02ee300	/* mask of pa
  * 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 */

Reply via email to