author: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-21 14:19:31 +0100
committer: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-24 14:27:17 +0100
commit: ba73d98745be1c10dc3cce68e8d7b95012d07d05
parent: 0d56a4518d5eaf595a24ab2202e171330bb2ed72
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/inode.c b/fs/inode.c
index 49b512592dcd..46116ef44c9f 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1796,7 +1796,7 @@ bool atime_needs_update(const struct path *path, struct inode *inode)
/* Atime updates will likely cause i_uid and i_gid to be written
* back improprely if their true value is unknown to the vfs.
*/
- if (HAS_UNMAPPED_ID(inode))
+ if (HAS_UNMAPPED_ID(mnt_user_ns(mnt), inode))
return false;
if (IS_NOATIME(inode))