Skip to content

Commit

Permalink
[PATCH] more nameidata removal: exec_permission_lite() doesn't need it
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 27, 2008
1 parent b77b064 commit 672b16b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 672b16b

Please sign in to comment.