HomeFreeBSD

Fix assert in FreeBSD-specific dmu_read_pages

Description

Fix assert in FreeBSD-specific dmu_read_pages

The function has three similar pieces of code: for read-behind pages,
requested pages and read-ahead pages. All three pieces had an
assert to ensure that the page is not mapped. Later the assert was
relaxed to require that the page is not mapped for writing. But that
was done in two places out of three. This change fixes the third piece,
read-ahead.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andriy Gapon <avg@FreeBSD.org>
Closes #11654

Details

Provenance
avgAuthored on Feb 28 2021, 1:23 AM
GitHub <noreply@github.com>Committed on Feb 28 2021, 1:23 AM
Parents
rG3e73ea0c10df: ZTS: zpool_trim_start_and_cancel_pos.ksh
Branches
Unknown
Tags
Unknown