summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-07-17 09:45:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-07-26 20:53:23 -0400
commit672b16b2f66c149888bd876a4f92342112205fe1 (patch)
treebef14b7ef42dc4421a2af5402ba9d5d71addc5ad /fs/namei.c
parentb77b0646ef4efe31a7449bb3d9360fd00f95433d (diff)
downloadlinux-672b16b2f66c149888bd876a4f92342112205fe1.tar.gz
linux-672b16b2f66c149888bd876a4f92342112205fe1.tar.bz2
linux-672b16b2f66c149888bd876a4f92342112205fe1.zip
[PATCH] more nameidata removal: exec_permission_lite() doesn't need it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 6b0e8e5e079e..6d75430358ac 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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)