]> Pileus Git - ~andy/linux/commit
Track negative entries v3
authorGoldwyn Rodrigues <rgoldwyn@gmail.com>
Mon, 28 Jun 2010 15:04:32 +0000 (10:04 -0500)
committerJoel Becker <joel.becker@oracle.com>
Fri, 10 Sep 2010 16:18:15 +0000 (09:18 -0700)
commit5e98d492406818e6a94c0ba54c61f59d40cefa4a
tree9eec0813194dd2192f6ae05d2f344e7839d2ab44
parentb4d693fcc5fe99ed211addb5c6a0f8398f0b266e
Track negative entries v3

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: Goldwyn Rodrigues <rgoldwyn@suse.de>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dcache.c
fs/ocfs2/dcache.h
fs/ocfs2/dlmglue.c
fs/ocfs2/inode.c
fs/ocfs2/inode.h
fs/ocfs2/namei.c