diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/acl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c index 9e49da8302d3..e4fa49e6c539 100644 --- a/fs/ext3/acl.c +++ b/fs/ext3/acl.c | |||
@@ -244,8 +244,11 @@ ext3_check_acl(struct inode *inode, int mask, unsigned int flags) | |||
244 | { | 244 | { |
245 | struct posix_acl *acl; | 245 | struct posix_acl *acl; |
246 | 246 | ||
247 | if (flags & IPERM_FLAG_RCU) | 247 | if (flags & IPERM_FLAG_RCU) { |
248 | return -ECHILD; | 248 | if (!negative_cached_acl(inode, ACL_TYPE_ACCESS)) |
249 | return -ECHILD; | ||
250 | return -EAGAIN; | ||
251 | } | ||
249 | 252 | ||
250 | acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); | 253 | acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); |
251 | if (IS_ERR(acl)) | 254 | if (IS_ERR(acl)) |