Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154298
b: refs/heads/master
c: d5bb68a
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jun 24, 2009
1 parent 3a63168 commit 7621816
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 72c04902d1e27c8a324014cff1d4475c11b1cecd
refs/heads/master: d5bb68adda7cc179e8efadeaa3a283cb470f13a6
13 changes: 7 additions & 6 deletions trunk/fs/jfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,16 @@ static int jfs_set_acl(tid_t tid, struct inode *inode, int type,

static int jfs_check_acl(struct inode *inode, int mask)
{
if (inode->i_acl == ACL_NOT_CACHED) {
struct posix_acl *acl = jfs_get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(acl))
return PTR_ERR(acl);
struct posix_acl *acl = jfs_get_acl(inode, ACL_TYPE_ACCESS);

if (IS_ERR(acl))
return PTR_ERR(acl);
if (acl) {
int error = posix_acl_permission(inode, acl, mask);
posix_acl_release(acl);
return error;
}

if (inode->i_acl)
return posix_acl_permission(inode, inode->i_acl, mask);
return -EAGAIN;
}

Expand Down

0 comments on commit 7621816

Please sign in to comment.