We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74931da commit 6e8cd2cCopy full SHA for 6e8cd2c
fs/efivarfs/inode.c
@@ -155,20 +155,8 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
155
return 0;
156
};
157
158
-/*
159
- * Handle negative dentry.
160
- */
161
-static struct dentry *efivarfs_lookup(struct inode *dir, struct dentry *dentry,
162
- unsigned int flags)
163
-{
164
- if (dentry->d_name.len > NAME_MAX)
165
- return ERR_PTR(-ENAMETOOLONG);
166
- d_add(dentry, NULL);
167
- return NULL;
168
-}
169
-
170
const struct inode_operations efivarfs_dir_inode_operations = {
171
- .lookup = efivarfs_lookup,
+ .lookup = simple_lookup,
172
.unlink = efivarfs_unlink,
173
.create = efivarfs_create,
174
0 commit comments