Fixing ABD struct allocation for FreeBSD
commit0a03495e3ee75b3457181910081e809dda80cec0
authorBrian Atkinson <batkinson@lanl.gov>
Tue, 16 Jun 2020 17:05:22 +0000 (16 11:05 -0600)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 17:05:22 +0000 (16 10:05 -0700)
treee378bb35226740775843fbeb0baece40a9989163
parentc13facb9c4a036034ff8d898857a81c64c83dc09
Fixing ABD struct allocation for FreeBSD

In the event we are allocating a gang ABD in FreeBSD we are passing 0
to abd_alloc_struct(); however, this led to an allocation of ABD scatter
with 0 chunks. This left the gang ABD allocation 24 bytes smaller than
it should have been.

Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #10431
module/os/freebsd/zfs/abd_os.c