Commit 6e8cd2cb authored by Al Viro's avatar Al Viro

efivarfs: we can use simple_lookup() now

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 74931da7
...@@ -155,20 +155,8 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry) ...@@ -155,20 +155,8 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
return 0; 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 = { const struct inode_operations efivarfs_dir_inode_operations = {
.lookup = efivarfs_lookup, .lookup = simple_lookup,
.unlink = efivarfs_unlink, .unlink = efivarfs_unlink,
.create = efivarfs_create, .create = efivarfs_create,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment