Messages in this thread | | | Date | Thu, 19 Feb 2004 20:05:54 +0000 | From | viro@parcelfa ... | Subject | Re: Eureka! (was Re: UTF-8 and case-insensitivity) |
| |
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? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |