ecryptfs_inode_permission() doesn't need to bail out on RCU
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jun 2011 05:01:59 +0000 (01:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:38 +0000 (01:43 -0400)
... now that inode_permission() can take MAY_NOT_BLOCK and handle it
properly.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ecryptfs/inode.c

index bec75f8e91acb800c882614e4cfdf628136baf75..799e01055f224e5514819da88be00a58ca3ba340 100644 (file)
@@ -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);
 }