HomeFreeBSD

Adding ZERO_PAGE detection

Description

Adding ZERO_PAGE detection

On some architectures ZERO_PAGE is unavailable because it references
a GPL exported symbol of empty_zero_page. Originally e08b993 removed
the call to PAGE_ZERO(0) for assignment to the abd_zero_page. However,
a simple check can be done to avoid a kernel allocation and free for
the abd_zero_page if ZERO_PAGE is available.

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

Details

Provenance
Brian Atkinson <batkinson@lanl.gov>Authored on Mar 14 2022, 7:37 PM
GitHub <noreply@github.com>Committed on Mar 14 2022, 7:37 PM
Parents
rGdad2b19fffda: module: zfs: zio_inject: zio_match_handler: don't << -1
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGbecc717f6143: Adding ZERO_PAGE detection (authored by Brian Atkinson <batkinson@lanl.gov>).Mar 14 2022, 7:37 PM