ztest: update ztest_dmu_snapshot_create_destroy()
[zfs.git] / config / kernel-insert-inode-locked.m4
blob348aff9a577036730abd9da6571c2eff46df442e
1 dnl #
2 dnl # 2.6.28 API change
3 dnl # Added insert_inode_locked() helper function.
4 dnl #
5 AC_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         ])
13 AC_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         ])