Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226732
b: refs/heads/master
c: 7359861
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin committed Jan 7, 2011
1 parent 1dc4320 commit cba797e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e1743ebe35ec7e3c1fa732408358fbc614cbbe5
refs/heads/master: 73598611ade7c85f0c3d52ba5130103f6709c6d3
7 changes: 5 additions & 2 deletions trunk/fs/ext2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,11 @@ ext2_check_acl(struct inode *inode, int mask, unsigned int flags)
{
struct posix_acl *acl;

if (flags & IPERM_FLAG_RCU)
return -ECHILD;
if (flags & IPERM_FLAG_RCU) {
if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
return -ECHILD;
return -EAGAIN;
}

acl = ext2_get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(acl))
Expand Down
7 changes: 5 additions & 2 deletions trunk/fs/ext3/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,11 @@ ext3_check_acl(struct inode *inode, int mask, unsigned int flags)
{
struct posix_acl *acl;

if (flags & IPERM_FLAG_RCU)
return -ECHILD;
if (flags & IPERM_FLAG_RCU) {
if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
return -ECHILD;
return -EAGAIN;
}

acl = ext3_get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(acl))
Expand Down
7 changes: 5 additions & 2 deletions trunk/fs/ext4/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ ext4_check_acl(struct inode *inode, int mask, unsigned int flags)
{
struct posix_acl *acl;

if (flags & IPERM_FLAG_RCU)
return -ECHILD;
if (flags & IPERM_FLAG_RCU) {
if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
return -ECHILD;
return -EAGAIN;
}

acl = ext4_get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(acl))
Expand Down

0 comments on commit cba797e

Please sign in to comment.