• D
    [PATCH] Optimise d_find_alias() · 214fda1f
    David Howells 提交于
    The attached patch optimises d_find_alias() to only take the spinlock if
    there's anything in the the inode's alias list.  If there isn't, it returns
    NULL immediately.
    
    With respect to the superblock sharing patch, this should reduce by one the
    number of times the dcache_lock is taken by nfs_lookup() for ordinary
    directory lookups.
    
    Only in the case where there's already a dentry for particular directory inode
    (such as might happen when another mountpoint is rooted at that dentry) will
    the lock then be taken the extra time.
    Signed-off-by: NDavid Howells <dhowells@redhat.com>
    Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    214fda1f
dcache.c 44.2 KB