diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /fs/ocfs2/acl.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'fs/ocfs2/acl.c')
-rw-r--r-- | fs/ocfs2/acl.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/ocfs2/acl.c b/fs/ocfs2/acl.c index 391915093fe1..e913ad130fdd 100644 --- a/fs/ocfs2/acl.c +++ b/fs/ocfs2/acl.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/string.h> | 25 | #include <linux/string.h> |
26 | 26 | ||
27 | #define MLOG_MASK_PREFIX ML_INODE | ||
28 | #include <cluster/masklog.h> | 27 | #include <cluster/masklog.h> |
29 | 28 | ||
30 | #include "ocfs2.h" | 29 | #include "ocfs2.h" |
@@ -291,13 +290,17 @@ static int ocfs2_set_acl(handle_t *handle, | |||
291 | return ret; | 290 | return ret; |
292 | } | 291 | } |
293 | 292 | ||
294 | int ocfs2_check_acl(struct inode *inode, int mask) | 293 | int ocfs2_check_acl(struct inode *inode, int mask, unsigned int flags) |
295 | { | 294 | { |
296 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 295 | struct ocfs2_super *osb; |
297 | struct buffer_head *di_bh = NULL; | 296 | struct buffer_head *di_bh = NULL; |
298 | struct posix_acl *acl; | 297 | struct posix_acl *acl; |
299 | int ret = -EAGAIN; | 298 | int ret = -EAGAIN; |
300 | 299 | ||
300 | if (flags & IPERM_FLAG_RCU) | ||
301 | return -ECHILD; | ||
302 | |||
303 | osb = OCFS2_SB(inode->i_sb); | ||
301 | if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) | 304 | if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) |
302 | return ret; | 305 | return ret; |
303 | 306 | ||
@@ -493,7 +496,7 @@ static int ocfs2_xattr_set_acl(struct dentry *dentry, const char *name, | |||
493 | if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) | 496 | if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) |
494 | return -EOPNOTSUPP; | 497 | return -EOPNOTSUPP; |
495 | 498 | ||
496 | if (!is_owner_or_cap(inode)) | 499 | if (!inode_owner_or_capable(inode)) |
497 | return -EPERM; | 500 | return -EPERM; |
498 | 501 | ||
499 | if (value) { | 502 | if (value) { |