HomeFreeBSD

Linux: use filemap_range_has_page()

Description

Linux: use filemap_range_has_page()

As of the 4.13 kernel filemap_range_has_page() can be used to
check if there is a page mapped in a given file range. When
available this interface should be used which eliminates the
need for the zp->z_is_mapped boolean.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14493

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 14 2023, 7:04 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jun 5 2023, 5:59 PM
Parents
rG9e5a297de66b: Speed up WB_SYNC_NONE when a WB_SYNC_ALL occurs simultaneously
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3ad6c1692ff1: Linux: use filemap_range_has_page() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 5 2023, 5:59 PM