btrfs: cleanup, use kmalloc_array/kcalloc array helpers
authorDavid Sterba <dsterba@suse.cz>
Fri, 20 Feb 2015 17:00:26 +0000 (18:00 +0100)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Mar 2015 16:23:58 +0000 (17:23 +0100)
commit31e818fe7375d60de9953051f7bd1615cebc3681
treec096eb4b8398ada2c04ab459705f436bde969beb
parentf8c269d7223f6b63cc5936eb191bc3b170d24342
btrfs: cleanup, use kmalloc_array/kcalloc array helpers

Convert kmalloc(nr * size, ..) to kmalloc_array that does additional
overflow checks, the zeroing variant is kcalloc.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/check-integrity.c
fs/btrfs/compression.c
fs/btrfs/ctree.c
fs/btrfs/disk-io.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/raid56.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c