]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-blk-fetch-request.m4
Update SAs when an inode is dirtied
[mirror_zfs-debian.git] / config / kernel-blk-fetch-request.m4
CommitLineData
c9c0d073
BB
1dnl #
2dnl # 2.6.31 API change
3dnl # Request queue peek/retrieval interface cleanup, the blk_fetch_request()
4dnl # function replaces the elv_next_request() and blk_fetch_request()
5dnl # functions. The updated blk_fetch_request() function returns the
6dnl # next available request and removed it from the request queue.
7dnl #
8AC_DEFUN([ZFS_AC_KERNEL_BLK_FETCH_REQUEST], [
9 AC_MSG_CHECKING([whether blk_fetch_request() is available])
b9c59ec8
PS
10 tmp_flags="$EXTRA_KCFLAGS"
11 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
c9c0d073
BB
12 ZFS_LINUX_TRY_COMPILE([
13 #include <linux/blkdev.h>
14 ],[
15 struct request_queue *q = NULL;
16 (void) blk_fetch_request(q);
17 ],[
18 AC_MSG_RESULT(yes)
19 AC_DEFINE(HAVE_BLK_FETCH_REQUEST, 1,
20 [blk_fetch_request() is available])
21 ],[
22 AC_MSG_RESULT(no)
23 ])
b9c59ec8 24 EXTRA_KCFLAGS="$tmp_flags"
c9c0d073 25])