summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/inode.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2018-03-20 21:35:40 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2018-04-12 12:04:49 +0200
commit0471a9cdb00ff4a84e781c6dc4b0f87297bac1ed (patch)
treeafb14ab38ef60ab03ba9d69fcb68ab5ed0296467 /fs/overlayfs/inode.c
parentovl: set d->is_dir and d->opaque for last path element (diff)
downloadlinux-0471a9cdb00ff4a84e781c6dc4b0f87297bac1ed.tar.xz
linux-0471a9cdb00ff4a84e781c6dc4b0f87297bac1ed.zip
ovl: cleanup setting OVL_INDEX
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/inode.c')
-rw-r--r--fs/overlayfs/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 1d75b2e96c96..b3be0cfd4c92 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -770,6 +770,9 @@ struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry,
if (upperdentry && ovl_is_impuredir(upperdentry))
ovl_set_flag(OVL_IMPURE, inode);
+ if (index)
+ ovl_set_flag(OVL_INDEX, inode);
+
/* Check for non-merge dir that may have whiteouts */
if (is_dir) {
if (((upperdentry && lowerdentry) || numlower > 1) ||