4 dnl # generic_fillattr in linux/fs.h now requires a struct user_namespace*
5 dnl # as the first arg, to support idmapped mounts.
8 dnl # generic_fillattr() now takes struct mnt_idmap* as the first argument
11 dnl # generic_fillattr() now takes u32 as second argument, representing a
12 dnl # request_mask for statx
14 AC_DEFUN([ZFS_AC_KERNEL_SRC_GENERIC_FILLATTR], [
15 ZFS_LINUX_TEST_SRC([generic_fillattr_userns], [
18 struct user_namespace *userns = NULL;
19 struct inode *in = NULL;
20 struct kstat *k = NULL;
21 generic_fillattr(userns, in, k);
24 ZFS_LINUX_TEST_SRC([generic_fillattr_mnt_idmap], [
27 struct mnt_idmap *idmap = NULL;
28 struct inode *in = NULL;
29 struct kstat *k = NULL;
30 generic_fillattr(idmap, in, k);
33 ZFS_LINUX_TEST_SRC([generic_fillattr_mnt_idmap_reqmask], [
36 struct mnt_idmap *idmap = NULL;
37 struct inode *in = NULL;
38 struct kstat *k = NULL;
39 generic_fillattr(idmap, 0, in, k);
43 AC_DEFUN([ZFS_AC_KERNEL_GENERIC_FILLATTR], [
45 [whether generic_fillattr requires struct mnt_idmap* and request_mask])
46 ZFS_LINUX_TEST_RESULT([generic_fillattr_mnt_idmap_reqmask], [
48 AC_DEFINE(HAVE_GENERIC_FILLATTR_IDMAP_REQMASK, 1,
49 [generic_fillattr requires struct mnt_idmap* and u32 request_mask])
51 AC_MSG_CHECKING([whether generic_fillattr requires struct mnt_idmap*])
52 ZFS_LINUX_TEST_RESULT([generic_fillattr_mnt_idmap], [
54 AC_DEFINE(HAVE_GENERIC_FILLATTR_IDMAP, 1,
55 [generic_fillattr requires struct mnt_idmap*])
57 AC_MSG_CHECKING([whether generic_fillattr requires struct user_namespace*])
58 ZFS_LINUX_TEST_RESULT([generic_fillattr_userns], [
60 AC_DEFINE(HAVE_GENERIC_FILLATTR_USERNS, 1,
61 [generic_fillattr requires struct user_namespace*])