Module Name:    src
Committed By:   dholland
Date:           Sat Dec  5 05:23:35 UTC 2015

Modified Files:
        src/sys/kern: vfs_cache.c

Log Message:
Fix lying comment.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/kern/vfs_cache.c

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

Modified files:

Index: src/sys/kern/vfs_cache.c
diff -u src/sys/kern/vfs_cache.c:1.108 src/sys/kern/vfs_cache.c:1.109
--- src/sys/kern/vfs_cache.c:1.108	Fri Oct  2 16:54:15 2015
+++ src/sys/kern/vfs_cache.c	Sat Dec  5 05:23:35 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_cache.c,v 1.108 2015/10/02 16:54:15 christos Exp $	*/
+/*	$NetBSD: vfs_cache.c,v 1.109 2015/12/05 05:23:35 dholland Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.108 2015/10/02 16:54:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.109 2015/12/05 05:23:35 dholland Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -569,10 +569,9 @@ cache_lookup(struct vnode *dvp, const ch
 		} else {
 			COUNT(cpup, ncs_badhits);
 			/*
-			 * Last component and we are renaming or
-			 * deleting, the cache entry is invalid,
-			 * or otherwise don't want cache entry to
-			 * exist.
+			 * Last component and we are preparing to create
+			 * the named object, so flush the negative cache
+			 * entry.
 			 */
 			cache_invalidate(ncp);
 			/* found nothing */

Reply via email to