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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 20 2022, 5:33 PM
Parents
rG3bb068d4d56e: autoconf: Pretend `CONFIG_MODULES` is always on
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG60fc173251a7: Adding ZERO_PAGE detection (authored by Brian Atkinson <batkinson@lanl.gov>).May 20 2022, 5:33 PM