• G
    Track negative entries v3 · 5e98d492
    Goldwyn Rodrigues 提交于
    Track negative dentries by recording the generation number of the parent
    directory in d_fsdata. The generation number for the parent directory is
    recorded in the inode_info, which increments every time the lock on the
    directory is dropped.
    
    If the generation number of the parent directory and the negative dentry
    matches, there is no need to perform the revalidate, else a revalidate
    is forced. This improves performance in situations where nodes look for
    the same non-existent file multiple times.
    
    Thanks Mark for explaining the DLM sequence.
    Signed-off-by: NGoldwyn Rodrigues <rgoldwyn@suse.de>
    Signed-off-by: NJoel Becker <joel.becker@oracle.com>
    5e98d492
dcache.c 14.5 KB