aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-06-06 16:36:14 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-06 17:42:27 -0400
commitd671a1cbf7c7a5c5562106d39eb7f830ae5273ae (patch)
treec27ab7e75684cb70d943c3b2690ebbd62000a921 /fs/namei.c
parent634ee7017b31e46e28c0bd2cb488213331bfd39a (diff)
[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 <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
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)
503 int error; 503 int error;
504 struct dentry *dentry = path->dentry; 504 struct dentry *dentry = path->dentry;
505 505
506 touch_atime(nd->mnt, dentry); 506 touch_atime(path->mnt, dentry);
507 nd_set_link(nd, NULL); 507 nd_set_link(nd, NULL);
508 508
509 if (path->mnt == nd->mnt) 509 if (path->mnt == nd->mnt)