Whamcloud - gitweb
LU-17421 build: Update check for arc_prune_func_t parameters 19/54819/6
authorBrian Atkinson <batkinson@lanl.gov>
Fri, 12 Jan 2024 00:36:59 +0000 (17:36 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Nov 2024 17:39:57 +0000 (17:39 +0000)
commit3ae5a79d0eab91c1fb7019732febc45d4993cc0e
treee739f9cd2d8bd2d87fe5d62ec70859e6cc01048d
parent0a2d92bf0b2b533c0ddce6bb33cd7f3e25020710
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().

Lustre-change: https://review.whamcloud.com/53664
Lustre-commit: 303cfe3372349974ff7cd610ad878b618ce4ee29

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