Source-Changes-HG archive

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

[src/trunk]: src/sys/kern We go to a lot of effort to choose a suitable value...



details:   https://anonhg.NetBSD.org/src/rev/5a184d505493
branches:  trunk
changeset: 538526:5a184d505493
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Oct 22 03:35:10 2002 +0000

description:
We go to a lot of effort to choose a suitable value for "docache" in
relookup() ... then ignore it!  Remove it.

diffstat:

 sys/kern/vfs_lookup.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r 9e62e157bb3e -r 5a184d505493 sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Tue Oct 22 03:32:17 2002 +0000
+++ b/sys/kern/vfs_lookup.c     Tue Oct 22 03:35:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.41 2002/08/02 04:49:35 soren Exp $    */
+/*     $NetBSD: vfs_lookup.c,v 1.42 2002/10/22 03:35:10 simonb Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.41 2002/08/02 04:49:35 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.42 2002/10/22 03:35:10 simonb Exp $");
 
 #include "opt_ktrace.h"
 
@@ -661,7 +661,6 @@
        struct componentname *cnp;
 {
        struct vnode *dp = 0;           /* the directory we are searching */
-       int docache;                    /* == 0 do not cache last component */
        int wantparent;                 /* 1 => wantparent or lockparent flag */
        int rdonly;                     /* lookup read-only flag bit */
        int error = 0;
@@ -674,10 +673,6 @@
         * Setup: break out flag bits into variables.
         */
        wantparent = cnp->cn_flags & (LOCKPARENT|WANTPARENT);
-       docache = (cnp->cn_flags & NOCACHE) ^ NOCACHE;
-       if (cnp->cn_nameiop == DELETE ||
-           (wantparent && cnp->cn_nameiop != CREATE))
-               docache = 0;
        rdonly = cnp->cn_flags & RDONLY;
        cnp->cn_flags &= ~ISSYMLINK;
        dp = dvp;



Home | Main Index | Thread Index | Old Index