diff options
author | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /fs/efivarfs/inode.c | |
parent | fe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff) | |
parent | f1d6e17f540af37bb1891480143669ba7636c4cf (diff) |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'fs/efivarfs/inode.c')
-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) | |||
155 | return 0; | 155 | return 0; |
156 | }; | 156 | }; |
157 | 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 = { | 158 | const struct inode_operations efivarfs_dir_inode_operations = { |
171 | .lookup = efivarfs_lookup, | 159 | .lookup = simple_lookup, |
172 | .unlink = efivarfs_unlink, | 160 | .unlink = efivarfs_unlink, |
173 | .create = efivarfs_create, | 161 | .create = efivarfs_create, |
174 | }; | 162 | }; |