mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
config: remove HAVE_SET_CACHED_ACL_USABLE
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
@@ -1049,9 +1049,9 @@ zpl_set_acl_impl(struct inode *ip, struct posix_acl *acl, int type)
|
||||
|
||||
if (!error) {
|
||||
if (acl)
|
||||
zpl_set_cached_acl(ip, type, acl);
|
||||
set_cached_acl(ip, type, acl);
|
||||
else
|
||||
zpl_forget_cached_acl(ip, type);
|
||||
forget_cached_acl(ip, type);
|
||||
}
|
||||
|
||||
return (error);
|
||||
@@ -1129,7 +1129,7 @@ zpl_get_acl_impl(struct inode *ip, int type)
|
||||
/* As of Linux 4.7, the kernel get_acl will set this for us */
|
||||
#ifndef HAVE_KERNEL_GET_ACL_HANDLE_CACHE
|
||||
if (!IS_ERR(acl))
|
||||
zpl_set_cached_acl(ip, type, acl);
|
||||
set_cached_acl(ip, type, acl);
|
||||
#endif
|
||||
|
||||
return (acl);
|
||||
|
||||
Reference in New Issue
Block a user