HomeFreeBSD

Linux 5.16: wait_on_page_bit() no longer available to modules

Description

Linux 5.16: wait_on_page_bit() no longer available to modules

Instead, linux/pagemap.h offers a number of folio-specific functions to
be called instead. In this case, module/os/linux/zfs/zfs_vnops_os.c
wants to call wait_on_page_bit(pp, PG_writeback). This gets replaced
with folio_wait_bit(folio_page(pp), PG_writeback). This change modifies
the code to conditionally compile that if configure identifies th
presence of the folio_wait_bit() function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12800

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Nov 16 2021, 5:10 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 29 2021, 6:48 PM
Parents
rGded851b2e09b: Fix several bugs in the FreeBSD rename VOP implementation
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc0fb44c50609: Linux 5.16: wait_on_page_bit() no longer available to modules (authored by Coleman Kane <ckane@colemankane.org>).Nov 29 2021, 6:48 PM