lkml.org 
[lkml]   [2004]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2005-03-22 14:01    [W:0.039 / U:0.192 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site