Skip to content

Commit

Permalink
[PATCH] namei fixes (19/19)
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jun 6, 2005
1 parent 634ee70 commit d671a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d671a1c

Please sign in to comment.