Skip to content
Snippets Groups Projects
Commit beefebf1 authored by Al Viro's avatar Al Viro
Browse files

ecryptfs_inode_permission() doesn't need to bail out on RCU


... now that inode_permission() can take MAY_NOT_BLOCK and handle it
properly.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 729cdb3a
No related branches found
No related tags found
No related merge requests found
...@@ -944,8 +944,6 @@ int ecryptfs_truncate(struct dentry *dentry, loff_t new_length) ...@@ -944,8 +944,6 @@ int ecryptfs_truncate(struct dentry *dentry, loff_t new_length)
static int static int
ecryptfs_permission(struct inode *inode, int mask) ecryptfs_permission(struct inode *inode, int mask)
{ {
if (mask & MAY_NOT_BLOCK)
return -ECHILD;
return inode_permission(ecryptfs_inode_to_lower(inode), mask); return inode_permission(ecryptfs_inode_to_lower(inode), mask);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment