In RHEL 8.2 kernel 4.18.0-193.6.3.el8_2, VM_FAULT_RETRY is
defined in linux/mm_types.h instead of linux/mm.h. This
patch adds the #include in llite_internal.h to define
VM_FAULT_RETRY.
Test-Parameters: clientdistro=el8.2 serverdistro=el8.2 \
testlist=sanity
Test-Parameters: clientdistro=el8.1 serverdistro=el8.1 \
testlist=sanity
Change-Id: I0e48b32f661dab25392abf7924b5ac44f334d639
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/39222
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
#include <lustre_compat.h>
#include <lustre_crypto.h>
#include <lustre_compat.h>
#include <lustre_crypto.h>
+#ifndef VM_FAULT_RETRY
+#include <linux/mm_types.h>
+#endif
+
#include "vvp_internal.h"
#include "range_lock.h"
#include "pcc.h"
#include "vvp_internal.h"
#include "range_lock.h"
#include "pcc.h"