HomeFreeBSD

abd_os: remove redundant refcount creation for abd_children

Description

abd_os: remove redundant refcount creation for abd_children

Refcount creation for abd_zero_scatter->abd_children is redundant in
abd_alloc_zero_scatter, as it has been done in abd_init_struct.

In addition, abd_children is undefined when ZFS_DEBUG is disabled, the
reference of abd_children in abd_alloc_zero_scatter breaks build of
libzpool when ZFS_DEBUG is disabled.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Ping Huang <huangping@smartx.com>
Closes #13429

Details

Provenance
hping <huangping@smartx.com>Authored on May 9 2022, 11:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 20 2022, 5:33 PM
Parents
rGeee389ba2e8c: Fix functions without a prototype
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb28c0c4bf8ca: abd_os: remove redundant refcount creation for abd_children (authored by hping <huangping@smartx.com>).May 20 2022, 5:33 PM