HomeFreeBSD

Allocate zap_attribute_t from kmem instead of stack

Description

Allocate zap_attribute_t from kmem instead of stack

This patch is preparatory work for long name feature. It changes all
users of zap_attribute_t to allocate it from kmem instead of stack. It
also make zap_attribute_t and zap_name_t structure variable length.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #15921

Details

Provenance
Sanjeev Bagewadi <sanjeev.bagewadi@nutanix.com>Authored on Feb 2 2021, 1:54 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 1 2024, 8:39 PM
Parents
rG141368a4b6da: Restrict raidz faulted vdev count
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3cf2bfa57008: Allocate zap_attribute_t from kmem instead of stack (authored by Sanjeev Bagewadi <sanjeev.bagewadi@nutanix.com>).Oct 1 2024, 8:39 PM