mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Linux 3.14 compat: posix_acl_{create,chmod}
posix_acl_{create,chmod} is changed to __posix_acl_{create_chmod}
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2124
This commit is contained in:
committed by
Brian Behlendorf
parent
443c3f7332
commit
408ec0d2e1
@@ -924,7 +924,7 @@ zpl_init_acl(struct inode *ip, struct inode *dir)
|
||||
}
|
||||
|
||||
mode = ip->i_mode;
|
||||
error = posix_acl_create(&acl, GFP_KERNEL, &mode);
|
||||
error = __posix_acl_create(&acl, GFP_KERNEL, &mode);
|
||||
if (error >= 0) {
|
||||
ip->i_mode = mode;
|
||||
mark_inode_dirty(ip);
|
||||
@@ -954,7 +954,7 @@ zpl_chmod_acl(struct inode *ip)
|
||||
if (IS_ERR(acl) || !acl)
|
||||
return (PTR_ERR(acl));
|
||||
|
||||
error = posix_acl_chmod(&acl, GFP_KERNEL, ip->i_mode);
|
||||
error = __posix_acl_chmod(&acl, GFP_KERNEL, ip->i_mode);
|
||||
if (!error)
|
||||
error = zpl_set_acl(ip, ACL_TYPE_ACCESS, acl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user