]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use vmem_zalloc to silence allocation warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 31 Mar 2023 16:43:54 +0000 (09:43 -0700)
committerGitHub <noreply@github.com>
Fri, 31 Mar 2023 16:43:54 +0000 (09:43 -0700)
commit1142362ff606ab7a1262d7d6f1f9be2205825065
tree7c8cb82ac57f698d05ba76bcaa6e3282ad6b9c4c
parent21c4b2a944dce7e45a9f0c959624fe66b825fae9
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
module/os/linux/zfs/zfs_vfsops.c