3 dnl # See torvalds/linux@a528d35
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_GETATTR], [
6 ZFS_LINUX_TEST_SRC([inode_operations_getattr_path], [
10 const struct path *p, struct kstat *k,
11 u32 request_mask, unsigned int query_flags)
14 static const struct inode_operations
15 iops __attribute__ ((unused)) = {
16 .getattr = test_getattr,
20 ZFS_LINUX_TEST_SRC([inode_operations_getattr_vfsmount], [
24 struct vfsmount *mnt, struct dentry *d,
28 static const struct inode_operations
29 iops __attribute__ ((unused)) = {
30 .getattr = test_getattr,
35 AC_DEFUN([ZFS_AC_KERNEL_INODE_GETATTR], [
36 AC_MSG_CHECKING([whether iops->getattr() takes a path])
37 ZFS_LINUX_TEST_RESULT([inode_operations_getattr_path], [
39 AC_DEFINE(HAVE_PATH_IOPS_GETATTR, 1,
40 [iops->getattr() takes a path])
44 AC_MSG_CHECKING([whether iops->getattr() takes a vfsmount])
45 ZFS_LINUX_TEST_RESULT([inode_operations_getattr_vfsmount], [
47 AC_DEFINE(HAVE_VFSMOUNT_IOPS_GETATTR, 1,
48 [iops->getattr() takes a vfsmount])