[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-kern
Subject: Re: vfs namecache change
From: yamt () mwd ! biglobe ! ne ! jp (YAMAMOTO Takashi)
Date: 2006-12-29 23:52:58
Message-ID: 20061229235258.A2DB111702 () yamt ! dyndns ! org
[Download RAW message or body]
> Hi,
>
> Seems like the vfs name cache was accidentally(?) changed to not cache
> anything else than CREATE operations for leaf components. The patch
> restores old behaviour back, AFAICT. Of course I maybe don't agree with
> saying what we want to say with the way we are saying it (house of cards,
> anyone?), but a major rototillation will have to wait for another time.
>
> look ok?
>
> Index: vfs_lookup.c
> ===================================================================
> RCS file: /cvsroot/src/sys/kern/vfs_lookup.c,v
> retrieving revision 1.77
> diff -u -r1.77 vfs_lookup.c
> --- vfs_lookup.c 27 Dec 2006 23:21:02 -0000 1.77
> +++ vfs_lookup.c 29 Dec 2006 19:02:46 -0000
> @@ -527,7 +527,7 @@
> * Setup: break out flag bits into variables.
> */
> docache = (cnp->cn_flags & NOCACHE) ^ NOCACHE;
> - if (cnp->cn_nameiop != CREATE)
> + if ((cnp->cn_flags & LOCKPARENT) && (cnp->cn_nameiop != CREATE))
> docache = 0;
i prefer:
if (cnp->cn_nameiop == DELETE)
docache = 0;
YAMAMOTO Takashi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic