Whamcloud - gitweb
LU-9859 libcfs: add support for Xarray 91/37391/9
authorJames Simmons <jsimmons@infradead.org>
Wed, 29 Apr 2020 12:37:32 +0000 (08:37 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 8 May 2020 09:19:10 +0000 (09:19 +0000)
commit84e12028be9a13a5f702ce04adfd55d94d8a96ef
treeaf593bb631010903e2f1b500d6b29e2605a2feca
parent563441973881781a08c3b2c72accc49232b97e70
LU-9859 libcfs: add support for Xarray

In the late 4.X kernel cycle Xarrays were introduced with the
goal of replacing the radix tree for the page cache. It is
highly optimized for densely packed data which is the case for
several items in Lustre such as the static array for the obd
devices and quota ids. This patch provides Xarray support for
kernels that lack. The current verison of Xarray back ported
is from the 5.4-rc2 kernel.

Change-Id: I54f9046f50a353e1cd4271c0b97207062bbf3898
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/37391
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/Makefile.am
libcfs/include/libcfs/linux/xarray.h [new file with mode: 0644]
libcfs/libcfs/Makefile.in
libcfs/libcfs/linux/Makefile.am
libcfs/libcfs/linux/linux-prim.c
libcfs/libcfs/linux/xarray.c [new file with mode: 0644]
lustre/autoconf/lustre-core.m4
lustre/include/lustre_compat.h
lustre/include/obd.h
lustre/llite/llite_lib.c
lustre/llite/vvp_io.c
lustre/mdc/mdc_request.c