]> git.proxmox.com Git - mirror_zfs.git/commit
Make spl_kmem_cache size check consistent
authoryouzhongyang <youzhong@gmail.com>
Tue, 16 Jan 2024 21:30:58 +0000 (16:30 -0500)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 21:30:58 +0000 (13:30 -0800)
commit29ea6faf8ff5173da33c5506a7ef8ae21d3926e3
tree0259197bbd2234b31b267dd0cc41fc85b4d7ace2
parentb64be1624c3f833ada9b8f8f947d04496a1ab5b8
Make spl_kmem_cache size check consistent

On Linux x86_64, kmem cache can have size up to 4M,
however increasing spl_kmem_cache_slab_limit can lead
to crash due to the size check inconsistency.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #15757
module/os/linux/spl/spl-kmem-cache.c