4 dnl # generic_fillattr in linux/fs.h now requires a struct user_namespace*
5 dnl # as the first arg, to support idmapped mounts.
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_GENERIC_FILLATTR_USERNS], [
8 ZFS_LINUX_TEST_SRC([generic_fillattr_userns], [
11 struct user_namespace *userns = NULL;
12 struct inode *in = NULL;
13 struct kstat *k = NULL;
14 generic_fillattr(userns, in, k);
18 AC_DEFUN([ZFS_AC_KERNEL_GENERIC_FILLATTR_USERNS], [
19 AC_MSG_CHECKING([whether generic_fillattr requires struct user_namespace*])
20 ZFS_LINUX_TEST_RESULT([generic_fillattr_userns], [
22 AC_DEFINE(HAVE_GENERIC_FILLATTR_USERNS, 1,
23 [generic_fillattr requires struct user_namespace*])