Skip to content

Commit

Permalink
efivarfs: we can use simple_lookup() now
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 14, 2013
1 parent 74931da commit 6e8cd2c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fs/efivarfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,8 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
return 0;
};

/*
* Handle negative dentry.
*/
static struct dentry *efivarfs_lookup(struct inode *dir, struct dentry *dentry,
unsigned int flags)
{
if (dentry->d_name.len > NAME_MAX)
return ERR_PTR(-ENAMETOOLONG);
d_add(dentry, NULL);
return NULL;
}

const struct inode_operations efivarfs_dir_inode_operations = {
.lookup = efivarfs_lookup,
.lookup = simple_lookup,
.unlink = efivarfs_unlink,
.create = efivarfs_create,
};

0 comments on commit 6e8cd2c

Please sign in to comment.