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 24 2023, 11:35 PM
Parents
rG8d21c002c6ae: zfs_clone_range: use vmem_malloc for large allocation
Branches
Unknown
Tags
Unknown