aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-16 17:00:43 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commita1832d1ecb0195c2087b412c3e7ae8e18f4ea574 (patch)
tree5b269087b37b18dc9d0c06d7bcaa9969cf672b74 /module/os/linux/zfs
parentd1a07741f8add5328ee405830a573975c8373c47 (diff)
config: remove HAVE_KERNEL_GET_ACL_HANDLE_CACHE
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'module/os/linux/zfs')
-rw-r--r--module/os/linux/zfs/zpl_xattr.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/module/os/linux/zfs/zpl_xattr.c b/module/os/linux/zfs/zpl_xattr.c
index beca5b655..f272054e0 100644
--- a/module/os/linux/zfs/zpl_xattr.c
+++ b/module/os/linux/zfs/zpl_xattr.c
@@ -1087,17 +1087,6 @@ zpl_get_acl_impl(struct inode *ip, int type)
void *value = NULL;
char *name;
- /*
- * As of Linux 3.14, the kernel get_acl will check this for us.
- * Also as of Linux 4.7, comparing against ACL_NOT_CACHED is wrong
- * as the kernel get_acl will set it to temporary sentinel value.
- */
-#ifndef HAVE_KERNEL_GET_ACL_HANDLE_CACHE
- acl = get_cached_acl(ip, type);
- if (acl != ACL_NOT_CACHED)
- return (acl);
-#endif
-
switch (type) {
case ACL_TYPE_ACCESS:
name = XATTR_NAME_POSIX_ACL_ACCESS;
@@ -1126,12 +1115,6 @@ zpl_get_acl_impl(struct inode *ip, int type)
if (size > 0)
kmem_free(value, size);
- /* 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))
- set_cached_acl(ip, type, acl);
-#endif
-
return (acl);
}