diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 15:48:35 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 15:48:35 +0200 |
commit | 6e8cd2cb46e3c772871c86de2ffb718f911f9b59 (patch) | |
tree | 24ff79b49b03b3a08d46f5051699bf8cd5efe55b /fs/efivarfs | |
parent | make simple_lookup() usable for filesystems that set ->s_d_op (diff) | |
download | linux-6e8cd2cb46e3c772871c86de2ffb718f911f9b59.tar.xz linux-6e8cd2cb46e3c772871c86de2ffb718f911f9b59.zip |
efivarfs: we can use simple_lookup() now
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/efivarfs/inode.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/efivarfs/inode.c b/fs/efivarfs/inode.c index 7e787fb90293..07ab49745e31 100644 --- a/fs/efivarfs/inode.c +++ b/fs/efivarfs/inode.c @@ -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, }; |