Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Obey negative cache entries for intermediate direct...



details:   https://anonhg.NetBSD.org/src/rev/492bd9cc74d3
branches:  trunk
changeset: 476263:492bd9cc74d3
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Sep 10 23:24:23 1999 +0000

description:
Obey negative cache entries for intermediate directories during a create.

diffstat:

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

diffs (19 lines):

diff -r 1b79e0084d20 -r 492bd9cc74d3 sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Fri Sep 10 23:13:09 1999 +0000
+++ b/sys/kern/vfs_cache.c      Fri Sep 10 23:24:23 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.20 1999/09/05 14:22:34 jdolecek Exp $  */
+/*     $NetBSD: vfs_cache.c,v 1.21 1999/09/10 23:24:23 mycroft Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -142,7 +142,8 @@
                 * Restore the ISWHITEOUT flag saved earlier.
                 */
                cnp->cn_flags |= ncp->nc_vpid;
-               if (cnp->cn_nameiop != CREATE) {
+               if (cnp->cn_nameiop != CREATE ||
+                   (cnp->cn_flags & ISLASTCN) == 0) {
                        nchstats.ncs_neghits++;
                        /*
                         * Move this slot to end of LRU chain,



Home | Main Index | Thread Index | Old Index