]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/btrfs/compression.c
btrfs: change btrfs_csum_final result param type to u8
authorDomagoj Tršan <domagoj.trsan@gmail.com>
Thu, 27 Oct 2016 07:52:33 +0000 (08:52 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:18 +0000 (13:45 +0100)
commit0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7
tree91f93d3c295a6528cd027cba93bebd2d99e8273b
parenta23eaa875f0f1d89eb866b8c9860e78273ff5daf
btrfs: change btrfs_csum_final result param type to u8

csum member of struct btrfs_super_block has array type of u8. It makes
sense that function btrfs_csum_final should be also declared to accept
u8 *. I changed the declaration of method void btrfs_csum_final(u32 crc,
char *result); to void btrfs_csum_final(u32 crc, u8 *result);

Signed-off-by: Domagoj Tršan <domagoj.trsan@gmail.com>
[ changed cast to u8 at several call sites ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c