HomeFreeBSD

Use vmem_zalloc to silence allocation warning

Description

Use vmem_zalloc to silence allocation warning

The kmem allocation in zfs_prune_aliases() will trigger a large
allocation warning on systems with 64K pages. Resolve this by
switching to vmem_alloc() which internally uses kvmalloc() so the
right allocator will be used based on the allocation size.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8491
Closes #14694

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 31 2023, 4:43 PM
Parents
rGe97637d484c3: Add the ability to uninitialize
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6ec3abcb59aa: Use vmem_zalloc to silence allocation warning (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 26 2023, 5:10 PM