]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/dcache.c
fs: remove dentry_lru_prune()
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 15 Apr 2013 06:13:21 +0000 (14:13 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 May 2013 19:04:01 +0000 (15:04 -0400)
commit61572bb1f40b9bec0acbb4d7bc0f5b33739f1ab1
treea43dfe3cf842c97b106ced26c2c138ef259d30f6
parent6b13eb1baa17b8746f96bd536d2897ec86e823d9
fs: remove dentry_lru_prune()

When pruning a dentry, its ancestor dentry can also be pruned. But
the ancestor dentry does not go through dput(), so it does not get
put on the dentry LRU. Hence associating d_prune with removing the
dentry from the LRU is the wrong.

The fix is remove dentry_lru_prune(). Call file system's d_prune()
callback directly when pruning dentries.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c