]>
Commit | Line | Data |
---|---|---|
2209e409 DB |
1 | dnl # |
2 | dnl # 4.8 API change | |
3 | dnl # kernel vm counters change | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_KERNEL_VM_NODE_STAT], [ | |
6 | AC_MSG_CHECKING([whether to use vm_node_stat based fn's]) | |
7 | ZFS_LINUX_TRY_COMPILE([ | |
8 | #include <linux/mm.h> | |
9 | #include <linux/vmstat.h> | |
e921f650 | 10 | ],[ |
2209e409 DB |
11 | int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS; |
12 | long x __attribute__ ((unused)) = | |
13 | atomic_long_read(&vm_node_stat[0]); | |
14 | (void) global_node_page_state(0); | |
15 | ],[ | |
16 | AC_MSG_RESULT(yes) | |
17 | AC_DEFINE(ZFS_GLOBAL_NODE_PAGE_STATE, 1, | |
18 | [using global_node_page_state()]) | |
19 | ],[ | |
20 | AC_MSG_RESULT(no) | |
21 | ]) | |
22 | ]) |