xref: /freebsd/sys/contrib/openzfs/config/kernel-insert-inode-locked.m4 (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1dnl #
2dnl # 2.6.28 API change
3dnl # Added insert_inode_locked() helper function.
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_INSERT_INODE_LOCKED], [
6	ZFS_LINUX_TEST_SRC([insert_inode_locked], [
7		#include <linux/fs.h>
8	], [
9		insert_inode_locked(NULL);
10	])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_INSERT_INODE_LOCKED], [
14	AC_MSG_CHECKING([whether insert_inode_locked() is available])
15	ZFS_LINUX_TEST_RESULT_SYMBOL([insert_inode_locked],
16	    [insert_inode_locked], [fs/inode.c], [
17		AC_MSG_RESULT(yes)
18	], [
19		ZFS_LINUX_TEST_ERROR([insert_inode_locked()])
20	])
21])
22