]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-follow-down-one.m4
Linux 4.16 compat: use correct *_dec_and_test()
[FreeBSD/FreeBSD.git] / config / kernel-follow-down-one.m4
1 dnl #
2 dnl # 2.6.38 API change
3 dnl # follow_down() renamed follow_down_one().  The original follow_down()
4 dnl # symbol still exists but will traverse down all the layers.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_FOLLOW_DOWN_ONE], [
7         AC_MSG_CHECKING([whether follow_down_one() is available])
8         ZFS_LINUX_TRY_COMPILE([
9                 #include <linux/namei.h>
10         ],[
11                 struct path *p = NULL;
12                 follow_down_one(p);
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_FOLLOW_DOWN_ONE, 1,
16                     [follow_down_one() is available])
17         ],[
18                 AC_MSG_RESULT(no)
19         ])
20 ])