Embed a struct path into struct nameidata instead of nd->{dentry,mnt}
[sfrench/cifs-2.6.git] / fs / proc / proc_sysctl.c
index b9cb23c08f631fbafb632cfa0bd1e180712c7443..614c34b6d1c22214ffcdeb46a5f9e9eb63d69678 100644 (file)
@@ -407,7 +407,7 @@ static int proc_sys_permission(struct inode *inode, int mask, struct nameidata *
        if (!nd || !depth)
                goto out;
 
-       dentry = nd->dentry;
+       dentry = nd->path.dentry;
        table = do_proc_sys_lookup(dentry->d_parent, &dentry->d_name, &head);
 
        /* If the entry does not exist deny permission */