aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-02-12 19:08:06 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-09 02:38:53 -0400
commit3ccb354d641d910309b916b9c856e2a82ced7237 (patch)
tree7439690ff7654285fd1f50a0e6e44705ae8cabed /fs/dcache.c
parent9ea459e110df32e60a762f311f7939eaa879601d (diff)
vfs: Document the effect of d_revalidate on d_find_alias
d_drop or check_submounts_and_drop called from d_revalidate can result in renamed directories with child dentries being unhashed. These renamed and drop directory dentries can be rehashed after d_materialise_unique uses d_find_alias to find them. Reviewed-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 4858d2e5cf2e..1f8e6acb0ea4 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -761,7 +761,8 @@ EXPORT_SYMBOL(dget_parent);
761 * acquire the reference to alias and return it. Otherwise return NULL. 761 * acquire the reference to alias and return it. Otherwise return NULL.
762 * Notice that if inode is a directory there can be only one alias and 762 * Notice that if inode is a directory there can be only one alias and
763 * it can be unhashed only if it has no children, or if it is the root 763 * it can be unhashed only if it has no children, or if it is the root
764 * of a filesystem. 764 * of a filesystem, or if the directory was renamed and d_revalidate
765 * was the first vfs operation to notice.
765 * 766 *
766 * If the inode has an IS_ROOT, DCACHE_DISCONNECTED alias, then prefer 767 * If the inode has an IS_ROOT, DCACHE_DISCONNECTED alias, then prefer
767 * any other hashed alias over that one. 768 * any other hashed alias over that one.