xref: /freebsd/sys/contrib/openzfs/config/kernel-follow-down-one.m4 (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1dnl #
2dnl # 2.6.38 API change
3dnl # follow_down() renamed follow_down_one().  The original follow_down()
4dnl # symbol still exists but will traverse down all the layers.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SRC_FOLLOW_DOWN_ONE], [
7	ZFS_LINUX_TEST_SRC([follow_down_one], [
8		#include <linux/namei.h>
9	],[
10		struct path *p = NULL;
11		follow_down_one(p);
12	])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_FOLLOW_DOWN_ONE], [
16	AC_MSG_CHECKING([whether follow_down_one() is available])
17	ZFS_LINUX_TEST_RESULT([follow_down_one], [
18		AC_MSG_RESULT(yes)
19	],[
20		ZFS_LINUX_TEST_ERROR([follow_down_one()])
21	])
22])
23