Linux 5.16: wait_on_page_bit() no longer available to modules
commitc0fb44c50609c973bb06d0ec24e9e659ce6c9446
authorColeman Kane <ckane@colemankane.org>
Tue, 16 Nov 2021 05:10:35 +0000 (16 00:10 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Nov 2021 18:48:52 +0000 (29 10:48 -0800)
tree4ff0ecc84fdaa00defed200e43f62477e38cad17
parentded851b2e09b86553152bddd1d00d0ff75a8caeb
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
config/kernel-pagemap-folio_wait_bit.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/zfs/zfs_vnops_os.c