]> granicus.if.org Git - zfs/blob - config/kernel-blk-rq-pos.m4
Range lock performance improvements
[zfs] / config / kernel-blk-rq-pos.m4
1 dnl #
2 dnl # 2.6.31 API change
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_BLK_RQ_POS], [
5         AC_MSG_CHECKING([whether blk_rq_pos() is available])
6         ZFS_LINUX_TRY_COMPILE([
7                 #include <linux/blkdev.h>
8         ],[
9                 struct request *req = NULL;
10                 (void) blk_rq_pos(req);
11         ],[
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_BLK_RQ_POS, 1,
14                           [blk_rq_pos() is available])
15         ],[
16                 AC_MSG_RESULT(no)
17         ])
18 ])