]> git.proxmox.com Git - mirror_zfs.git/commit
abd: lift ABD zero scan from zio_compress_data() to abd_cmp_zero()
authorRob Norris <rob.norris@klarasystems.com>
Fri, 9 Aug 2024 21:30:26 +0000 (07:30 +1000)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 21:30:26 +0000 (14:30 -0700)
commitb0bf14cdb58eda2f1b60e419740802f6a7ab08c0
treea4d967721fb1df02d9570fd888556567feb434a0
parentf87fe67b4449de33f814794710b2f1ef8b1d6e42
abd: lift ABD zero scan from zio_compress_data() to abd_cmp_zero()

It's now the caller's responsibility do special handling for holes if
that's something it wants.

This also makes zio_compress_data() and zio_decompress_data() properly
the inverse of each other.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Jason Lee <jasonlee@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16326
include/sys/abd.h
module/zfs/abd.c
module/zfs/zio.c
module/zfs/zio_compress.c