summaryrefslogtreecommitdiff
path: root/fs/overlayfs/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:16 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:16 +0200
commit13c72075ac9f5a5cf3f61c85adaafffe48a6f797 (patch)
tree9e9232d1fe91ad0bad85982656ce070129a29110 /fs/overlayfs/inode.c
parentcf31c46347e8e54cb53d66255ae3eea045b0a60c (diff)
downloadlwn-13c72075ac9f5a5cf3f61c85adaafffe48a6f797.tar.gz
lwn-13c72075ac9f5a5cf3f61c85adaafffe48a6f797.zip
ovl: move impure to ovl_inode
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/inode.c')
-rw-r--r--fs/overlayfs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 4654c03dd508..23d64d51f331 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -490,6 +490,10 @@ struct inode *ovl_get_inode(struct dentry *dentry, struct dentry *upperdentry)
}
ovl_fill_inode(inode, realinode->i_mode, realinode->i_rdev);
ovl_inode_init(inode, upperdentry, lowerdentry);
+
+ if (upperdentry && ovl_is_impuredir(upperdentry))
+ ovl_set_flag(OVL_IMPURE, inode);
+
if (inode->i_state & I_NEW)
unlock_new_inode(inode);
out: