diff options
author | Domagoj Tršan <domagoj.trsan@gmail.com> | 2016-10-27 08:52:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:18 +0100 |
commit | 0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7 (patch) | |
tree | 91f93d3c295a6528cd027cba93bebd2d99e8273b /fs/btrfs/inode.c | |
parent | a23eaa875f0f1d89eb866b8c9860e78273ff5daf (diff) | |
download | op-kernel-dev-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.zip op-kernel-dev-0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7.tar.gz |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 66c1d65..e6300d0 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3102,7 +3102,7 @@ static int __readpage_endio_check(struct inode *inode, kaddr = kmap_atomic(page); csum = btrfs_csum_data(kaddr + pgoff, csum, len); - btrfs_csum_final(csum, (char *)&csum); + btrfs_csum_final(csum, (u8 *)&csum); if (csum != csum_expected) goto zeroit; |