]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux 6.2 compat: zpl_set_acl arg2 is now struct dentry
authorColeman Kane <ckane@colemankane.org>
Tue, 24 Jan 2023 19:20:50 +0000 (14:20 -0500)
committerGitHub <noreply@github.com>
Tue, 24 Jan 2023 19:20:50 +0000 (11:20 -0800)
commit9cd71c8604d52def22ffaddc35755712f0fb9349
treee30c63a663662e7837f51defeba904ba47bb1a2b
parent0f740a4f1dd444fb961e9070a3eb5d3bc68a03b3
linux 6.2 compat:  zpl_set_acl arg2 is now struct dentry

Linux 6.2 changes the second argument of the set_acl operation to be a
"struct dentry *" rather than a "struct inode *". The inode* parameter
is still available as dentry->d_inode, so adjust the call to the _impl
function call to dereference and pass that pointer to it.

Also document that the get_acl -> get_inode_acl member name change from
commit 884a693 was an API change also introduced in Linux 6.2.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #14415
config/kernel-acl.m4
include/os/linux/zfs/sys/zpl.h
module/os/linux/zfs/zpl_xattr.c