From: Al Viro Date: Tue, 21 Jun 2011 05:01:59 +0000 (-0400) Subject: ecryptfs_inode_permission() doesn't need to bail out on RCU X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=beefebf1aa611242e022e71bae87034f415d3314;p=openwrt%2Fstaging%2Fblogic.git 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: Al Viro --- diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index bec75f8e91ac..799e01055f22 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -944,8 +944,6 @@ int ecryptfs_truncate(struct dentry *dentry, loff_t new_length) static int ecryptfs_permission(struct inode *inode, int mask) { - if (mask & MAY_NOT_BLOCK) - return -ECHILD; return inode_permission(ecryptfs_inode_to_lower(inode), mask); }