Whamcloud - gitweb
LU-13731 autoconf: check if VM_FAULT_RETRY is defined 81/39281/2
authorJian Yu <yujian@whamcloud.com>
Sun, 5 Jul 2020 08:16:06 +0000 (01:16 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 20 Jul 2020 05:21:42 +0000 (05:21 +0000)
commitd8bc3df60f21c40885be465f3a636374ffab95df
tree50343369c09bfb1bed0034dd62a00aa27a806e43
parent08892438473f3188de3dc7f76b0ce433eaef4367
LU-13731 autoconf: check if VM_FAULT_RETRY is defined

In RHEL 8.2 kernel 4.18.0-193.el8, VM_FAULT_RETRY is
defined as an enumeration constant in linux/mm_types.h
instead of a macro in linux/mm.h. This patch adds
autoconf macros to check if VM_FAULT_RETRY is defined
at configure time.

Test-Parameters: clientdistro=el8.2 serverdistro=el8.2 \
testlist=sanity

Test-Parameters: clientdistro=el8.1 serverdistro=el8.1 \
testlist=sanity

Fixes: 2e813f3e2d ("LU-13731 llite: include linux/mm_types.h for VM_FAULT_RETRY")
Change-Id: I2fdae7b62a53e447a7eb979787bdbd79423b787d
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/39281
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Menadue <ben.menadue@anu.edu.au>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/llite/llite_internal.h