VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Nick Piggin <npiggin@kernel.dk> 2011-01-07 17:50:00 +1100 committer: Nick Piggin <npiggin@kernel.dk> 2011-01-07 17:50:30 +1100 commit: 73598611ade7c85f0c3d52ba5130103f6709c6d3 parent: 1e1743ebe35ec7e3c1fa732408358fbc614cbbe5
Commit Summary:
ext2,3,4: provide simple rcu-walk ACL implementation
Diffstat:
1 file changed, 5 insertions, 2 deletions
diff --git a/fs/ext4/acl.c b/fs/ext4/acl.c
index 373dcaeedba9..e0270d1f8d82 100644
--- a/fs/ext4/acl.c
+++ b/fs/ext4/acl.c
@@ -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))