1dnl # 2dnl # 2.6.28 API change 3dnl # Added d_obtain_alias() helper function. 4dnl # 5AC_DEFUN([ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS], [ 6 ZFS_LINUX_TEST_SRC([d_obtain_alias], [ 7 #include <linux/dcache.h> 8 ], [ 9 d_obtain_alias(NULL); 10 ]) 11]) 12 13AC_DEFUN([ZFS_AC_KERNEL_D_OBTAIN_ALIAS], [ 14 AC_MSG_CHECKING([whether d_obtain_alias() is available]) 15 ZFS_LINUX_TEST_RESULT_SYMBOL([d_obtain_alias], 16 [d_obtain_alias], [fs/dcache.c], [ 17 AC_MSG_RESULT(yes) 18 ], [ 19 ZFS_LINUX_TEST_ERROR([d_obtain_alias()]) 20 ]) 21]) 22 23dnl # 24dnl # 2.6.38 API change 25dnl # Added d_set_d_op() helper function. 26dnl # 27AC_DEFUN([ZFS_AC_KERNEL_SRC_D_SET_D_OP], [ 28 ZFS_LINUX_TEST_SRC([d_set_d_op], [ 29 #include <linux/dcache.h> 30 ], [ 31 d_set_d_op(NULL, NULL); 32 ]) 33]) 34 35AC_DEFUN([ZFS_AC_KERNEL_D_SET_D_OP], [ 36 AC_MSG_CHECKING([whether d_set_d_op() is available]) 37 ZFS_LINUX_TEST_RESULT_SYMBOL([d_set_d_op], 38 [d_set_d_op], [fs/dcache.c], [ 39 AC_MSG_RESULT(yes) 40 ], [ 41 ZFS_LINUX_TEST_ERROR([d_set_d_op]) 42 ]) 43]) 44 45AC_DEFUN([ZFS_AC_KERNEL_SRC_DENTRY], [ 46 ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS 47 ZFS_AC_KERNEL_SRC_D_SET_D_OP 48 ZFS_AC_KERNEL_SRC_S_D_OP 49]) 50 51AC_DEFUN([ZFS_AC_KERNEL_DENTRY], [ 52 ZFS_AC_KERNEL_D_OBTAIN_ALIAS 53 ZFS_AC_KERNEL_D_SET_D_OP 54 ZFS_AC_KERNEL_S_D_OP 55]) 56