Whamcloud - gitweb
LU-12400 llite: Use the new vm_fault_t type 00/35500/3
authorShaun Tancheff <stancheff@cray.com>
Sun, 14 Jul 2019 12:43:14 +0000 (07:43 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:22:18 +0000 (00:22 +0000)
commitf2b224a48cb00f885b9df2cc56e349dae5f27f9e
tree9dd1cd68cffb7e5833c00671574323a0189c74da
parentbbc2cf593b83f5f1822889ef5c910906aadbe735
LU-12400 llite: Use the new vm_fault_t type

Linux 4.17 created the new vm_fault_t type

Linux-commit: 1c8f422059ae5da07db7406ab916203f9417e396

Linux 5.1 changed the vm_fault_t type to bitwise unsigned int
which changes the interfaces registered to struct vm_operations_struct

Linux-commit: 3d3539018d2cbd12e5af4a132636ee7fd8d43ef0

Prefer to match the upstream API and fallback to 'int'
where vm_fault_t is not available.

Test-Parameters: trivial
Cray-bug-id: LUS-7600
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Change-Id: I7122fb0d4af3ee9a19c1a5d0b77c4f13f6850181
Reviewed-on: https://review.whamcloud.com/35500
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
lustre/autoconf/lustre-core.m4
lustre/include/lustre_compat.h
lustre/llite/llite_mmap.c