]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-follow-down-one.m4
Improve cloning performance for large numbers of clones (LP: #1567557)
[mirror_zfs-debian.git] / config / kernel-follow-down-one.m4
CommitLineData
23d56208
AX
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_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])