HomeFreeBSD

linux 6.2 compat: zpl_set_acl arg2 is now struct dentry

Description

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

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Jan 24 2023, 7:20 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jan 24 2023, 11:36 PM
Parents
rG11bdc5c8e8fb: Revert "ztest fails assertion in zio_write_gang_member_ready()"
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG232fc23c6ea4: linux 6.2 compat: zpl_set_acl arg2 is now struct dentry (authored by Coleman Kane <ckane@colemankane.org>).Jan 24 2023, 11:36 PM