git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext2,3,4: provide simple rcu-walk ACL implementation
[pandora-kernel.git]
/
fs
/
ext3
/
acl.c
diff --git
a/fs/ext3/acl.c
b/fs/ext3/acl.c
index
8a11fe2
..
e4fa49e
100644
(file)
--- a/
fs/ext3/acl.c
+++ b/
fs/ext3/acl.c
@@
-240,10
+240,17
@@
ext3_set_acl(handle_t *handle, struct inode *inode, int type,
}
int
}
int
-ext3_check_acl(struct inode *inode, int mask)
+ext3_check_acl(struct inode *inode, int mask
, unsigned int flags
)
{
{
- struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS);
+ struct posix_acl *acl;
+
+ 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))
return PTR_ERR(acl);
if (acl) {
if (IS_ERR(acl))
return PTR_ERR(acl);
if (acl) {