]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.6 compat: generic_fillattr has a new u32 request_mask added at arg2
authorColeman Kane <ckane@colemankane.org>
Fri, 15 Sep 2023 04:36:39 +0000 (00:36 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Sep 2023 01:38:40 +0000 (18:38 -0700)
commit01d00dfa9e47dba025522790736fc34d65baf2f1
treee9ecbd62074846c1448886ed439987eb548037a2
parentb37f29341b9aec1b6e45d55b6f7a1bc5b2723f7a
Linux 6.6 compat: generic_fillattr has a new u32 request_mask added at arg2

In commit 0d72b92883c651a11059d93335f33d65c6eb653b, a new u32 argument
for the request_mask was added to generic_fillattr. This is the same
request_mask for statx that's present in the most recent API implemented
by zpl_getattr_impl. This commit conditionally adds it to the
zpl_generic_fillattr(...) macro, as well as the zfs_getattr_fast(...)
implementation, when configure determines it's present in the kernel's
generic_fillattr(...).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15263
config/kernel-generic_fillattr.m4
include/os/linux/kernel/linux/vfs_compat.h
include/os/linux/zfs/sys/zfs_vnops_os.h
module/os/linux/zfs/zfs_vnops_os.c
module/os/linux/zfs/zpl_ctldir.c
module/os/linux/zfs/zpl_inode.c