File: kernel-inode-state.m4

package info (click to toggle)
zfs-linux 2.4.1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 71,788 kB
  • sloc: ansic: 398,467; sh: 70,894; asm: 48,745; python: 8,163; makefile: 5,220; perl: 859
file content (23 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl #
dnl # 6.19 API change. inode->i_state no longer accessible directly; helper
dnl # functions exist.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_STATE_READ_ONCE], [
	ZFS_LINUX_TEST_SRC([inode_state_read_once], [
		#include <linux/fs.h>
	], [
		struct inode i = {};
		inode_state_read_once(&i);
	],[])
])

AC_DEFUN([ZFS_AC_KERNEL_INODE_STATE_READ_ONCE], [
	AC_MSG_CHECKING([whether inode_state_read_once() exists])
	ZFS_LINUX_TEST_RESULT([inode_state_read_once], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_INODE_STATE_READ_ONCE, 1,
		    [inode_state_read_once() exists])
	],[
		AC_MSG_RESULT(no)
	])
])