diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index 84dd957efa24..3f9b9275267b 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -31,7 +31,7 @@ static struct file *ovl_open_realfile(const struct file *file, const struct cred *old_cred; old_cred = ovl_override_creds(inode->i_sb); - realfile = open_with_fake_path(&file->f_path, file->f_flags | O_NOATIME, + realfile = open_with_fake_path(&file->f_path, file->f_flags, realinode, current_cred()); revert_creds(old_cred);