]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-vfs-getattr.m4
Fix typo/etc in module/zfs/zfs_ctldir.c
[mirror_zfs.git] / config / kernel-vfs-getattr.m4
CommitLineData
48ef8ba0
BB
1dnl #
2dnl # 4.11 API, a528d35e@torvalds/linux
3dnl # vfs_getattr(const struct path *p, struct kstat *s, u32 m, unsigned int f)
4dnl #
93ce2b4c 5AC_DEFUN([ZFS_AC_KERNEL_4ARGS_VFS_GETATTR], [
48ef8ba0 6 AC_MSG_CHECKING([whether vfs_getattr() wants 4 args])
93ce2b4c 7 ZFS_LINUX_TRY_COMPILE([
48ef8ba0
BB
8 #include <linux/fs.h>
9 ],[
10 vfs_getattr((const struct path *)NULL,
11 (struct kstat *)NULL,
12 (u32)0,
13 (unsigned int)0);
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_4ARGS_VFS_GETATTR, 1,
17 [vfs_getattr wants 4 args])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])
22
23dnl #
24dnl # 3.9 API
25dnl # vfs_getattr(struct path *p, struct kstat *s)
26dnl #
93ce2b4c 27AC_DEFUN([ZFS_AC_KERNEL_2ARGS_VFS_GETATTR], [
48ef8ba0 28 AC_MSG_CHECKING([whether vfs_getattr() wants 2 args])
93ce2b4c 29 ZFS_LINUX_TRY_COMPILE([
48ef8ba0
BB
30 #include <linux/fs.h>
31 ],[
32 vfs_getattr((struct path *) NULL,
33 (struct kstat *)NULL);
34 ],[
35 AC_MSG_RESULT(yes)
36 AC_DEFINE(HAVE_2ARGS_VFS_GETATTR, 1,
37 [vfs_getattr wants 2 args])
38 ],[
39 AC_MSG_RESULT(no)
40 ])
41])
42
43dnl #
44dnl # <3.9 API
45dnl # vfs_getattr(struct vfsmount *v, struct dentry *d, struct kstat *k)
46dnl #
93ce2b4c 47AC_DEFUN([ZFS_AC_KERNEL_3ARGS_VFS_GETATTR], [
48ef8ba0 48 AC_MSG_CHECKING([whether vfs_getattr() wants 3 args])
93ce2b4c 49 ZFS_LINUX_TRY_COMPILE([
48ef8ba0
BB
50 #include <linux/fs.h>
51 ],[
52 vfs_getattr((struct vfsmount *)NULL,
53 (struct dentry *)NULL,
54 (struct kstat *)NULL);
55 ],[
56 AC_MSG_RESULT(yes)
57 AC_DEFINE(HAVE_3ARGS_VFS_GETATTR, 1,
58 [vfs_getattr wants 3 args])
59 ],[
60 AC_MSG_RESULT(no)
61 ])
62])