summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-19 01:59:04 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-06-20 16:44:00 +0200
commit1712c20dae7b770b62b2e3272100b3b40af0157c (patch)
tree33dd9e2728421ab0ac14f2c30c07f91c7295d208 /fs
parentubifs: dereferencing an ERR_PTR in ubifs_mount() (diff)
downloadlinux-1712c20dae7b770b62b2e3272100b3b40af0157c.tar.xz
linux-1712c20dae7b770b62b2e3272100b3b40af0157c.zip
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>
Diffstat (limited to 'fs')
-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 9ad2369d9e35..bfcb18feb1df 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;
}