]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: Use kcalloc for allocating multiple elements
authorKenneth Lee <klee33@uw.edu>
Fri, 19 Aug 2022 05:42:55 +0000 (22:42 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commit4de4ca02b24f1c85e9e1404598c05c70b9a88ef7
tree5e33e9d78dac8780ea5029a214e2185829118db0
parent7200451b2265418bb01b56662cd5fc3068def10a
ceph: Use kcalloc for allocating multiple elements

Prefer using kcalloc(a, b) over kzalloc(a * b) as this improves
semantics since kcalloc is intended for allocating an array of memory.

Signed-off-by: Kenneth Lee <klee33@uw.edu>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c