VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-21 14:19:37 +0100 committer: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-24 14:27:18 +0100 commit: d06c26f196dd5b196dfa5ff9703cf6c1ce921b9d parent: 7c02cf73d0e2bfa18b321731dd35212eb6c92265
Commit Summary:
utimes: handle idmapped mounts
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/utimes.c b/fs/utimes.c
index 4572b91ddb91..39f356017635 100644
--- a/fs/utimes.c
+++ b/fs/utimes.c
@@ -62,7 +62,7 @@ int vfs_utimes(const struct path *path, struct timespec64 *times)
 	}
 retry_deleg:
 	inode_lock(inode);
-	error = notify_change(&init_user_ns, path->dentry, &newattrs,
+	error = notify_change(mnt_user_ns(path->mnt), path->dentry, &newattrs,
 			      &delegated_inode);
 	inode_unlock(inode);
 	if (delegated_inode) {