]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adding ZERO_PAGE detection
authorBrian Atkinson <batkinson@lanl.gov>
Mon, 14 Mar 2022 19:37:39 +0000 (13:37 -0600)
committerGitHub <noreply@github.com>
Mon, 14 Mar 2022 19:37:39 +0000 (12:37 -0700)
commitbecc717f6143caf80bad6879b6c6402538ecae89
treebfca8c4127635dbb2041877808991a71c75b25ea
parentdad2b19fffda43894a005a042055e268fe6b32e3
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
config/kernel-zero_page.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/zfs/abd_os.c