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