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
Tony Hutter <hutter2@llnl.gov>Committed on Dec 6 2021, 8:22 PM
Parents
rGa1a29bf8fcfc: Iterate encrypted clones at zvol_create_minor
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG12d27e71349b: Linux 5.16: wait_on_page_bit() no longer available to modules (authored by Coleman Kane <ckane@colemankane.org>).Dec 6 2021, 8:22 PM