summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-02-25 00:45:44 +0300
committerDavid Sterba <dsterba@suse.com>2026-04-07 19:55:59 +0300
commit2d2b5507e598984f5832f0c5193f35733c42995e (patch)
treec322c7f39254bd87a8a220cf5db89b74191ad893 /include/linux/zstd_errors.h
parent6603a9859887ed325fea9fc9347c2d9e6cf3bbe3 (diff)
downloadlinux-2d2b5507e598984f5832f0c5193f35733c42995e.tar.xz
btrfs: replace kcalloc() calls to kzalloc_objs()
Commit 2932ba8d9c99 ("slab: Introduce kmalloc_obj() and family") introduced, among many others, the kzalloc_objs() helper, which has some benefits over kcalloc(). Namely, internal introspection of the allocated type now becomes possible, allowing for future alignment-aware choices to be made by the allocator and future hardening work that can be type sensitive. Dropping 'sizeof' comes also as a nice side-effect. Moreover, this also allows us to be in line with the recent tree-wide migration to the kmalloc_obj() and family of helpers. See commit 69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types"). Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions