Whamcloud - gitweb
LU-17421 build: Update check for arc_prune_func_t parameters 64/53664/6
authorBrian Atkinson <batkinson@lanl.gov>
Fri, 12 Jan 2024 00:36:59 +0000 (17:36 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:09:28 +0000 (07:09 +0000)
commit303cfe3372349974ff7cd610ad878b618ce4ee29
tree62227be13a412e6811633a0c9d798e857aec2df8
parent99d63b24aee4a0972d2ebe72325123df45c82f0c
LU-17421 build: Update check for arc_prune_func_t parameters

In OpenZFS 2.2.1 the code for arc_prune_async() was unified so that
FreeBSD and Linux did not have their own implementation versions of
the same code. Part of this update changed first parameter for the
arc_prune_func_t to be an uint64_t.

Without this patch, Lustre would not build with ZFS 2.2.1 because of
a failure for incompatible pointer types for the arc_prunte_func_t
function pointer passed to arc_add_prune_callback().

Test-Parameters: trivial
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Change-Id: Iaa03cc9421f27a8517ce04817f04102de9adb86a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53664
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Akash B <akash-b@hpe.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
config/lustre-build-zfs.m4
lustre/osd-zfs/osd_handler.c