]>
Commit | Line | Data |
---|---|---|
c9c0d073 BB |
1 | dnl # |
2 | dnl # 2.6.24 API change | |
3 | dnl # Size argument dropped from bio_endio and bi_end_io, because the | |
4 | dnl # bi_end_io is only called once now when the request is complete. | |
5 | dnl # There is no longer any need for a size argument. This also means | |
6 | dnl # that partial IO's are no longer possibe and the end_io callback | |
7 | dnl # should not check bi->bi_size. Finally, the return type was updated | |
8 | dnl # to void. | |
9 | dnl # | |
10 | AC_DEFUN([ZFS_AC_KERNEL_BIO_END_IO_T_ARGS], [ | |
11 | AC_MSG_CHECKING([whether bio_end_io_t wants 2 args]) | |
c9c0d073 BB |
12 | ZFS_LINUX_TRY_COMPILE([ |
13 | #include <linux/bio.h> | |
c9c0d073 | 14 | |
c38367c7 RY |
15 | void wanted_end_io(struct bio *bio, int x) { return; } |
16 | ||
17 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
18 | ],[ | |
c9c0d073 BB |
19 | ],[ |
20 | AC_MSG_RESULT(yes) | |
21 | AC_DEFINE(HAVE_2ARGS_BIO_END_IO_T, 1, | |
22 | [bio_end_io_t wants 2 args]) | |
23 | ],[ | |
24 | AC_MSG_RESULT(no) | |
25 | ]) | |
c9c0d073 | 26 | ]) |