aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-18 19:59:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-06-20 10:44:00 -0400
commit1712c20dae7b770b62b2e3272100b3b40af0157c (patch)
tree33dd9e2728421ab0ac14f2c30c07f91c7295d208
parent185bf87393afe6b966881e36c459949d90930a7a (diff)
bad_inode_permission() is safe from RCU mode
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>
-rw-r--r--fs/bad_inode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bad_inode.c b/fs/bad_inode.c
index 9ad2369d9e3..bfcb18feb1d 100644
--- 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;
}