From 2e813f3e2dc0a9a76a47dc7b74b6f7ed21f842e5 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 30 Jun 2020 21:52:11 -0700 Subject: [PATCH] LU-13731 llite: include linux/mm_types.h for VM_FAULT_RETRY 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 Reviewed-on: https://review.whamcloud.com/39222 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/llite/llite_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index b504614..7b92e26 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -47,6 +47,10 @@ #include #include +#ifndef VM_FAULT_RETRY +#include +#endif + #include "vvp_internal.h" #include "range_lock.h" #include "pcc.h" -- 1.8.3.1