]> err.no Git - linux-2.6/commitdiff
[PATCH] more nameidata removal: exec_permission_lite() doesn't need it
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Jul 2008 13:45:01 +0000 (09:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:23 +0000 (20:53 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 6b0e8e5e079ec409fe268ab726448fc44185a6a8..6d75430358ac654fb0eb3ed56d1203bf42c3fb19 100644 (file)
@@ -460,8 +460,7 @@ static struct dentry * cached_lookup(struct dentry * parent, struct qstr * name,
  * short-cut DAC fails, then call permission() to do more
  * complete permission check.
  */
-static int exec_permission_lite(struct inode *inode,
-                                      struct nameidata *nd)
+static int exec_permission_lite(struct inode *inode)
 {
        umode_t mode = inode->i_mode;
 
@@ -884,7 +883,7 @@ static int __link_path_walk(const char *name, struct nameidata *nd)
                unsigned int c;
 
                nd->flags |= LOOKUP_CONTINUE;
-               err = exec_permission_lite(inode, nd);
+               err = exec_permission_lite(inode);
                if (err == -EAGAIN)
                        err = vfs_permission(nd, MAY_EXEC);
                if (err)