From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267539AbUBSUGQ (ORCPT ); Thu, 19 Feb 2004 15:06:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267532AbUBSUGP (ORCPT ); Thu, 19 Feb 2004 15:06:15 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:49301 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S267539AbUBSUF7 (ORCPT ); Thu, 19 Feb 2004 15:05:59 -0500 Date: Thu, 19 Feb 2004 20:05:54 +0000 From: viro@parcelfarce.linux.theplanet.co.uk To: Linus Torvalds Cc: Tridge , Jamie Lokier , "H. Peter Anvin" , Kernel Mailing List Subject: Re: Eureka! (was Re: UTF-8 and case-insensitivity) Message-ID: <20040219200554.GE31035@parcelfarce.linux.theplanet.co.uk> References: <16435.60448.70856.791580@samba.org> <16435.61622.732939.135127@samba.org> <20040219081027.GB4113@mail.shareable.org> <20040219163838.GC2308@mail.shareable.org> <20040219182948.GA3414@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 19, 2004 at 11:48:50AM -0800, Linus Torvalds wrote: > The VFS rule is: > - all new dentries start off with the two magic bits clear > - whenever we shrink a dentry, we clear the two magic bits in the parent > > and that is _all_ the VFS layer ever does. Even Al won't find this > obnoxious (yeah, we might clear the bits after a timeout on things that > need re-validation, but that's in the noise). > Notice what the above does? After the above loop, bit two will be set IFF > the dentry cache now contains every single name in the directory. > Otherwise it will be clear. Bit two will basically be a "dcache complete" > bit. What about dentry getting dropped in the middle of that loop _and_ another task setting the first bit again before the loop ends?