Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix lying comment.



details:   https://anonhg.NetBSD.org/src/rev/d6f861f2ea39
branches:  trunk
changeset: 342079:d6f861f2ea39
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Dec 05 05:23:35 2015 +0000

description:
Fix lying comment.

diffstat:

 sys/kern/vfs_cache.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 20e88bb024f1 -r d6f861f2ea39 sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Sat Dec 05 01:59:51 2015 +0000
+++ b/sys/kern/vfs_cache.c      Sat Dec 05 05:23:35 2015 +0000
@@ -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 @@
                } 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 */



Home | Main Index | Thread Index | Old Index