HomeFreeBSD

Skip memory allocation when compressing holes

Description

Skip memory allocation when compressing holes

Hole detection in the zio compression code allows us to
opportunistically skip compression on holes. We can go a step further
by not doing memory allocations on holes either.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Richard Yao <richard.yao@klarasystems.com>
Sponsored-by: Wasabi Technology, Inc.
Closes #14500

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Feb 27 2023, 10:41 PM
GitHub <noreply@github.com>Committed on Feb 27 2023, 10:41 PM
Parents
rGf58e513f7408: ICP: AES-GCM: Refactor gcm_clear_ctx()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGbff26b022066: Skip memory allocation when compressing holes (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Feb 27 2023, 10:41 PM