Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258828
b: refs/heads/master
c: 6311b10
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Jul 25, 2011
1 parent 9e15eec commit fd1c34c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 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: ebbb0ef2871bf3f529987313a9146cc42419a8a8
refs/heads/master: 6311b10800a4bdc3f2c85d01fb113cf49bb83770
13 changes: 1 addition & 12 deletions trunk/fs/xfs/linux-2.6/xfs_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,10 @@ xfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)
int
xfs_check_acl(struct inode *inode, int mask)
{
struct xfs_inode *ip;
struct posix_acl *acl;
int error = -EAGAIN;

ip = XFS_I(inode);
trace_xfs_check_acl(ip);

/*
* If there is no attribute fork no ACL exists on this inode and
* we can skip the whole exercise.
*
* FIXME! Fill the cache! Locking?
*/
if (!XFS_IFORK_Q(ip))
return -EAGAIN;
trace_xfs_check_acl(XFS_I(inode));

acl = xfs_get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(acl))
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,10 @@ xfs_setup_inode(
break;
}

/* if there is no attribute fork no ACL can exist on this inode */
if (!XFS_IFORK_Q(ip))
cache_no_acl(inode);

xfs_iflags_clear(ip, XFS_INEW);
barrier();

Expand Down

0 comments on commit fd1c34c

Please sign in to comment.