]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/autofs4/root.c
Embed a struct path into struct nameidata instead of nd->{dentry,mnt}
[net-next-2.6.git] / fs / autofs4 / root.c
index 2bbcc8151dc343eae48914aa95748fef401238f7..a119c863ff37adc8a79540e299ca18ceeb8919a5 100644 (file)
@@ -368,7 +368,8 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
                 * so we don't need to follow the mount.
                 */
                if (d_mountpoint(dentry)) {
-                       if (!autofs4_follow_mount(&nd->mnt, &nd->dentry)) {
+                       if (!autofs4_follow_mount(&nd->path.mnt,
+                                                 &nd->path.dentry)) {
                                status = -ENOENT;
                                goto out_error;
                        }