diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 32f31243d36ad00d846830d9bff7bc419f121a56..ec31711d48869cbcba7a9c156e36321e574c1c2c 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1079,6 +1079,9 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) root_dentry->d_fsdata = oe; + ovl_copyattr(ovl_dentry_real(root_dentry)->d_inode, + root_dentry->d_inode); + sb->s_magic = OVERLAYFS_SUPER_MAGIC; sb->s_op = &ovl_super_operations; sb->s_root = root_dentry;