]) # LC_HAVE_BVEC_ITER
#
+# LC_HAVE_BI_CNT
+#
+# 4.4 redefined bi_cnt as __bi_cnt
+#
+AC_DEFUN([LC_HAVE_BI_CNT], [
+LB_CHECK_COMPILE([if Linux kernel has bi_cnt in struct bio],
+have_bi_cnt, [
+ #include <asm/atomic.h>
+ #include <linux/bio.h>
+],[
+ struct bio bio;
+ int cnt;
+ cnt = atomic_read(&bio.bi_cnt);
+], [
+ AC_DEFINE(HAVE_BI_CNT, 1,
+ [struct bio has bi_cnt])
+])
+]) # LC_HAVE_BI_CNT
+
+#
# LC_HAVE_TRUNCATE_IPAGE_FINAL
#
# 3.14 bring truncate_inode_pages_final for evict_inode
]) # LC_HAVE_IN_COMPAT_SYSCALL
#
+# LC_HAVE_POSIX_ACL_VALID_USER_NS
+#
+# 4.8 posix_acl_valid takes struct user_namespace
+#
+AC_DEFUN([LC_HAVE_POSIX_ACL_VALID_USER_NS], [
+LB_CHECK_COMPILE([if 'posix_acl_valid' takes 'struct user_namespace'],
+posix_acl_valid, [
+ #include <linux/fs.h>
+ #include <linux/posix_acl.h>
+],[
+ posix_acl_valid((struct user_namespace*)NULL, (const struct posix_acl*)NULL);
+],[
+ AC_DEFINE(HAVE_POSIX_ACL_VALID_USER_NS, 1,
+ [posix_acl_valid takes struct user_namespace])
+])
+]) # LC_HAVE_POSIX_ACL_VALID_USER_NS
+
+#
# LC_PROG_LINUX
#
# Lustre linux kernel checks
LC_HAVE_LOCKS_LOCK_FILE_WAIT
LC_HAVE_QC_MAKE_REQUEST_FN
LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
+ LC_HAVE_BI_CNT
# 4.5
LC_HAVE_FILE_DENTRY
# 4.6
LC_HAVE_IN_COMPAT_SYSCALL
+ # 4.8
+ LC_HAVE_POSIX_ACL_VALID_USER_NS
+
#
AS_IF([test "x$enable_server" != xno], [
LC_FUNC_DEV_SET_RDONLY
lustre/doc/Makefile
lustre/include/Makefile
lustre/include/lustre/Makefile
+lustre/include/uapi/linux/Makefile
lustre/kernel_patches/targets/3.10-rhel7.target
+lustre/kernel_patches/targets/2.6-rhel6.9.target
lustre/kernel_patches/targets/2.6-rhel6.8.target
lustre/kernel_patches/targets/2.6-rhel6.7.target
lustre/kernel_patches/targets/2.6-rhel6.6.target
lustre/kernel_patches/targets/3.0-sles11sp3.target
lustre/kernel_patches/targets/3.0-sles11sp4.target
lustre/kernel_patches/targets/3.12-sles12.target
+lustre/kernel_patches/targets/4.4-sles12.target
lustre/kernel_patches/targets/2.6-fc11.target
lustre/kernel_patches/targets/2.6-fc12.target
lustre/kernel_patches/targets/2.6-fc15.target