3 dnl # The "count" was moved into ref->data, from ref
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_PERCPU_REF_COUNT_IN_DATA], [
6 ZFS_LINUX_TEST_SRC([percpu_ref_count_in_data], [
7 #include <linux/percpu-refcount.h>
9 struct percpu_ref_data d;
11 atomic_long_set(&d.count, 1L);
15 AC_DEFUN([ZFS_AC_KERNEL_PERCPU_REF_COUNT_IN_DATA], [
16 AC_MSG_CHECKING([whether is inside percpu_ref.data])
17 ZFS_LINUX_TEST_RESULT([percpu_ref_count_in_data], [
19 AC_DEFINE(ZFS_PERCPU_REF_COUNT_IN_DATA, 1,
20 [count is located in percpu_ref.data])
25 AC_DEFUN([ZFS_AC_KERNEL_SRC_PERCPU], [
26 ZFS_AC_KERNEL_SRC_PERCPU_REF_COUNT_IN_DATA
29 AC_DEFUN([ZFS_AC_KERNEL_PERCPU], [
30 ZFS_AC_KERNEL_PERCPU_REF_COUNT_IN_DATA