Whamcloud - gitweb
LU-13731 llite: include linux/mm_types.h for VM_FAULT_RETRY 22/39222/2
authorJian Yu <yujian@whamcloud.com>
Wed, 1 Jul 2020 04:52:11 +0000 (21:52 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 1 Jul 2020 17:26:19 +0000 (17:26 +0000)
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>
lustre/llite/llite_internal.h

index b504614..7b92e26 100644 (file)
 #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"