2 dnl # 4.11 API, a528d35e@torvalds/linux
3 dnl # vfs_getattr(const struct path *p, struct kstat *s, u32 m, unsigned int f)
5 AC_DEFUN([ZFS_AC_KERNEL_4ARGS_VFS_GETATTR], [
6 AC_MSG_CHECKING([whether vfs_getattr() wants 4 args])
7 ZFS_LINUX_TRY_COMPILE([
10 vfs_getattr((const struct path *)NULL,
16 AC_DEFINE(HAVE_4ARGS_VFS_GETATTR, 1,
17 [vfs_getattr wants 4 args])
25 dnl # vfs_getattr(struct path *p, struct kstat *s)
27 AC_DEFUN([ZFS_AC_KERNEL_2ARGS_VFS_GETATTR], [
28 AC_MSG_CHECKING([whether vfs_getattr() wants 2 args])
29 ZFS_LINUX_TRY_COMPILE([
32 vfs_getattr((struct path *) NULL,
33 (struct kstat *)NULL);
36 AC_DEFINE(HAVE_2ARGS_VFS_GETATTR, 1,
37 [vfs_getattr wants 2 args])
45 dnl # vfs_getattr(struct vfsmount *v, struct dentry *d, struct kstat *k)
47 AC_DEFUN([ZFS_AC_KERNEL_3ARGS_VFS_GETATTR], [
48 AC_MSG_CHECKING([whether vfs_getattr() wants 3 args])
49 ZFS_LINUX_TRY_COMPILE([
52 vfs_getattr((struct vfsmount *)NULL,
53 (struct dentry *)NULL,
54 (struct kstat *)NULL);
57 AC_DEFINE(HAVE_3ARGS_VFS_GETATTR, 1,
58 [vfs_getattr wants 3 args])