• Goldwyn Rodrigues's avatar
    Track negative entries v3 · 5e98d492
    Goldwyn Rodrigues authored
    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: default avatarGoldwyn Rodrigues <rgoldwyn@suse.de>
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    5e98d492
namei.c 60.3 KB