summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-01-11 11:33:24 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2018-01-24 11:25:53 +0100
commite8f9e5b780b0406ab81add72f1a05583ae5d40ac (patch)
tree51a706509d92558937ff8056321079c34053ec89 /fs/dcache.c
parent7db25d36d9253c58afd3db837dd53e66ae3b1ac9 (diff)
downloadlinux-0-day-e8f9e5b780b0406ab81add72f1a05583ae5d40ac.tar.gz
linux-0-day-e8f9e5b780b0406ab81add72f1a05583ae5d40ac.tar.xz
ovl: verify directory index entries on mount
Directory index entries should have 'upper' xattr pointing to the real upper dir. Verifying that the upper dir file handle is not stale is expensive, so only verify stale directory index entries on mount if NFS export feature is enabled. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 5c7df1df81ff8..b5d5ea984ac40 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3527,6 +3527,7 @@ bool is_subdir(struct dentry *new_dentry, struct dentry *old_dentry)
return result;
}
+EXPORT_SYMBOL(is_subdir);
static enum d_walk_ret d_genocide_kill(void *data, struct dentry *dentry)
{