projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
185bf87
)
bad_inode_permission() is safe from RCU mode
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 18 Jun 2011 23:59:04 +0000
(19:59 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 20 Jun 2011 14:44:00 +0000
(10:44 -0400)
return -EIO; is *not* a blocking operation, thank you very much.
Nick, what the hell have you been smoking?
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/bad_inode.c
patch
|
blob
|
history
diff --git
a/fs/bad_inode.c
b/fs/bad_inode.c
index 9ad2369d9e35e0651885a78dc3648ef9dbe8c412..bfcb18feb1df32b91a9db144f3f74f5873c85866 100644
(file)
--- a/
fs/bad_inode.c
+++ b/
fs/bad_inode.c
@@
-231,9
+231,6
@@
static int bad_inode_readlink(struct dentry *dentry, char __user *buffer,
static int bad_inode_permission(struct inode *inode, int mask, unsigned int flags)
{
- if (flags & IPERM_FLAG_RCU)
- return -ECHILD;
-
return -EIO;
}