]> git.apps.os.sepia.ceph.com Git - ceph-client.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)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:51:58 +0000 (07:51 +0800)
commitb5a88852c2fc0c8ecc8f2e13d20a4aad3b48fcb5
tree98bd5a5f8ea92e1dc2fbdb6fd75455953b436d3b
parent20effa34c72a81b37476d7d1000c7bc3983dd460
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>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/caps.c