# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1348 -> 1.1349 # fs/namei.c 1.76 -> 1.77 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/06/23 mikew@nisserv.test.com 1.1349 # namei.c: # nameidata should have the mnt we are looking at when doing a follow_link after a follow_mount # -------------------------------------------- # diff -Nru a/fs/namei.c b/fs/namei.c --- a/fs/namei.c Tue Jun 24 13:29:37 2003 +++ b/fs/namei.c Tue Jun 24 13:29:37 2003 @@ -655,6 +655,7 @@ if (inode->i_op->follow_link) { mntget(next.mnt); + nd->mnt = next.mnt; err = do_follow_link(next.dentry, nd); dput(next.dentry); mntput(next.mnt); @@ -708,6 +709,7 @@ if ((lookup_flags & LOOKUP_FOLLOW) && inode && inode->i_op && inode->i_op->follow_link) { mntget(next.mnt); + nd->mnt = next.mnt; err = do_follow_link(next.dentry, nd); dput(next.dentry); mntput(next.mnt);