HomeFreeBSD

brt_vdev_realloc: use vmem_alloc for large allocation

Description

brt_vdev_realloc: use vmem_alloc for large allocation

bv_entcount can be a relatively large allocation (see comment for
BRT_RANGESIZE), so get it from the big allocator.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Closes #15050

Details

Provenance
rob.norris_klarasystems.comAuthored on Jun 22 2023, 3:44 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 26 2023, 3:46 PM
Parents
rG7698503dcae0: zfs_clone_range: use vmem_malloc for large allocation
Branches
Unknown
Tags
Unknown