projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74931da
)
efivarfs: we can use simple_lookup() now
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 14 Jul 2013 13:48:35 +0000
(17:48 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 14 Jul 2013 13:48:35 +0000
(17:48 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/efivarfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/efivarfs/inode.c
b/fs/efivarfs/inode.c
index 7e787fb90293ecd920998d37f227533bab371833..07ab49745e31c4c7ff945bbeb5b4cd67848ea3d3 100644
(file)
--- 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,
};