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
GitHub <noreply@github.com>Committed on Feb 14 2023, 7:04 PM
Parents
rGab672133a9bd: Give strlcat() full buffer lengths rather than smaller buffer lengths
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG3fc92adc409a: Linux: use filemap_range_has_page() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 14 2023, 7:04 PM