aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r--fs/ceph/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 5f0013aafa4b..095799ba9dd1 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1801,17 +1801,17 @@ int ceph_do_getattr(struct inode *inode, int mask)
1801 * Check inode permissions. We verify we have a valid value for 1801 * Check inode permissions. We verify we have a valid value for
1802 * the AUTH cap, then call the generic handler. 1802 * the AUTH cap, then call the generic handler.
1803 */ 1803 */
1804int ceph_permission(struct inode *inode, int mask, unsigned int flags) 1804int ceph_permission(struct inode *inode, int mask)
1805{ 1805{
1806 int err; 1806 int err;
1807 1807
1808 if (flags & IPERM_FLAG_RCU) 1808 if (mask & MAY_NOT_BLOCK)
1809 return -ECHILD; 1809 return -ECHILD;
1810 1810
1811 err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED); 1811 err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED);
1812 1812
1813 if (!err) 1813 if (!err)
1814 err = generic_permission(inode, mask, flags, NULL); 1814 err = generic_permission(inode, mask);
1815 return err; 1815 return err;
1816} 1816}
1817 1817