diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 01:59:04 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 16:44:00 +0200 |
commit | 1712c20dae7b770b62b2e3272100b3b40af0157c (patch) | |
tree | 33dd9e2728421ab0ac14f2c30c07f91c7295d208 /fs/bad_inode.c | |
parent | ubifs: dereferencing an ERR_PTR in ubifs_mount() (diff) | |
download | linux-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/bad_inode.c')
-rw-r--r-- | fs/bad_inode.c | 3 |
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; } |