OpenZFS 4185 - add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R
[zfs.git] / config / kernel-follow-down-one.m4
blob63fa779d8571f9106ca78dc55f4d5c84147a95b7
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         ])