Skip to contentSkip to conversation

namei fixes (19/19)

PATCH New Al Viro 1 participant 1 message May 19, 2005 VFS

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 namei fixes (19/19)

(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.

----

fs/namei.c +1 -1
diff -urN RC12-rc4-18/fs/namei.c RC12-rc4-19/fs/namei.c
@@ -503,7 +503,7 @@
 	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)