linux 6.2 compat: get_acl() got moved to get_inode_acl() in 6.2

Linux 6.2 renamed the get_acl() operation to get_inode_acl() in
the inode_operations struct. This should fix Issue #14323.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #14323
Closes #14331
This commit is contained in:
Coleman Kane
2022-12-26 22:04:34 -05:00
committed by Brian Behlendorf
parent 556ed09537
commit 884a69357f
4 changed files with 32 additions and 3 deletions
+1 -1
View File
@@ -1124,7 +1124,7 @@ zpl_get_acl_impl(struct inode *ip, int type)
return (acl);
}
#if defined(HAVE_GET_ACL_RCU)
#if defined(HAVE_GET_ACL_RCU) || defined(HAVE_GET_INODE_ACL)
struct posix_acl *
zpl_get_acl(struct inode *ip, int type, bool rcu)
{