Commit 04160a9d authored by J. R. Okajima's avatar J. R. Okajima
Browse files

Merge branch 'aufs5.2/01modular' into aufs5.3/01modular

parents 3b4621e7 3d4e35bf
...@@ -37,7 +37,9 @@ struct posix_acl *aufs_get_acl(struct inode *inode, int type) ...@@ -37,7 +37,9 @@ struct posix_acl *aufs_get_acl(struct inode *inode, int type)
/* always topmost only */ /* always topmost only */
acl = get_acl(h_inode, type); acl = get_acl(h_inode, type);
if (!IS_ERR_OR_NULL(acl)) if (IS_ERR(acl))
forget_cached_acl(inode, type);
else
set_cached_acl(inode, type, acl); set_cached_acl(inode, type, acl);
out: out:
...@@ -78,12 +80,12 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type) ...@@ -78,12 +80,12 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
} }
ssz = au_sxattr(dentry, inode, &arg); ssz = au_sxattr(dentry, inode, &arg);
/* forget even it if succeeds since the branch might set differently */
forget_cached_acl(inode, type);
dput(dentry); dput(dentry);
err = ssz; err = ssz;
if (ssz >= 0) { if (ssz >= 0)
err = 0; err = 0;
set_cached_acl(inode, type, acl);
}
out: out:
return err; return err;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment