Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359174
b: refs/heads/master
c: 7f165aa
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Feb 26, 2013
1 parent ec0c52b commit 116c3a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 38baba9ea02780c2df35c7a02552fddeb8576e16
refs/heads/master: 7f165aaa7dc898472f3b3fbf2231bb3b5623a3df
7 changes: 3 additions & 4 deletions trunk/fs/9p/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ static int v9fs_set_acl(struct dentry *dentry, int type, struct posix_acl *acl)
char *name;
size_t size;
void *buffer;
struct inode *inode = dentry->d_inode;

set_cached_acl(inode, type, acl);

if (!acl)
return 0;

Expand Down Expand Up @@ -163,6 +159,7 @@ int v9fs_acl_chmod(struct dentry *dentry)
retval = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
if (retval)
return retval;
set_cached_acl(inode, ACL_TYPE_ACCESS, acl);
retval = v9fs_set_acl(dentry, ACL_TYPE_ACCESS, acl);
posix_acl_release(acl);
}
Expand All @@ -173,7 +170,9 @@ int v9fs_set_create_acl(struct dentry *dentry,
struct posix_acl **dpacl, struct posix_acl **pacl)
{
if (dentry) {
set_cached_acl(dentry->d_inode, ACL_TYPE_DEFAULT, *dpacl);
v9fs_set_acl(dentry, ACL_TYPE_DEFAULT, *dpacl);
set_cached_acl(dentry->d_inode, ACL_TYPE_ACCESS, *pacl);
v9fs_set_acl(dentry, ACL_TYPE_ACCESS, *pacl);
}
posix_acl_release(*dpacl);
Expand Down

0 comments on commit 116c3a4

Please sign in to comment.