Skip to content
  • Nicholas Piggin's avatar
    fs: dcache scale subdirs · 2fd6b7f5
    Nicholas Piggin authored
    
    
    Protect d_subdirs and d_child with d_lock, except in filesystems that aren't
    using dcache_lock for these anyway (eg. using i_mutex).
    
    Note: if we change the locking rule in future so that ->d_child protection is
    provided only with ->d_parent->d_lock, it may allow us to reduce some locking.
    But it would be an exception to an otherwise regular locking scheme, so we'd
    have to see some good results. Probably not worthwhile.
    
    Signed-off-by: default avatarNick Piggin <npiggin@kernel.dk>
    2fd6b7f5