btrfs: replace opencoded kvzalloc with the helper
authorDavid Sterba <dsterba@suse.com>
Wed, 31 May 2017 16:40:02 +0000 (18:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:01 +0000 (18:26 +0200)
commit818e010bf9d02b144569898506995bcff8918875
treeb8d9b0f2cf2c78609c4ccd9f3b9566a762296876
parent1e9d7291e50178699b87656488912eba235c7679
btrfs: replace opencoded kvzalloc with the helper

The logic of kmalloc and vmalloc fallback is opencoded in
several places, we can now use the existing helper.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c
fs/btrfs/raid56.c
fs/btrfs/send.c