From: Al Viro Date: Mon, 6 Jun 2005 20:36:14 +0000 (-0700) Subject: [PATCH] namei fixes (19/19) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d671a1cbf7c7a5c5562106d39eb7f830ae5273ae;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] namei fixes (19/19) __do_follow_link() passes potentially worng vfsmount to touch_atime(). It matters only in (currently impossible) case of symlink mounted on something, but it's trivial to fix and that actually makes more sense. Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/namei.c b/fs/namei.c index 5af7681e8ea3..a7f7f44119b3 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -503,7 +503,7 @@ static inline int __do_follow_link(struct path *path, struct nameidata *nd) int error; struct dentry *dentry = path->dentry; - touch_atime(nd->mnt, dentry); + touch_atime(path->mnt, dentry); nd_set_link(nd, NULL); if (path->mnt == nd->mnt)