Skip to content

Instantly share code, notes, and snippets.

@aszlig
Created March 14, 2019 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aszlig/f303bc1d860a649ad4442598a37a9d75 to your computer and use it in GitHub Desktop.
Save aszlig/f303bc1d860a649ad4442598a37a9d75 to your computer and use it in GitHub Desktop.
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment