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