Re: [PATCH] btrfs: change btrfs_csum_final result param type to u8

2016-10-21 Thread Domagoj Tršan
On 2016-10-12 16:43 +0200, David Sterba wrote: > On Mon, Sep 19, 2016 at 07:22:28PM +0200, David Sterba wrote: > > On Sun, Sep 18, 2016 at 12:10:34AM +0100, Domagoj Tršan wrote: > > > csum member of struct btrfs_super_block has array type of u8. It makes > > > sense > > > that function

Re: [PATCH] btrfs: change btrfs_csum_final result param type to u8

2016-10-12 Thread David Sterba
On Mon, Sep 19, 2016 at 07:22:28PM +0200, David Sterba wrote: > On Sun, Sep 18, 2016 at 12:10:34AM +0100, Domagoj Tršan wrote: > > 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

Re: [PATCH] btrfs: change btrfs_csum_final result param type to u8

2016-09-19 Thread David Sterba
On Sun, Sep 18, 2016 at 12:10:34AM +0100, Domagoj Tršan wrote: > 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 >

[PATCH] btrfs: change btrfs_csum_final result param type to u8

2016-09-17 Thread Domagoj Tršan
--- fs/btrfs/disk-io.c | 2 +- fs/btrfs/disk-io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 50bed6c..95bd34f 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -273,7 +273,7 @@ u32 btrfs_csum_data(char *data, u32

[PATCH] btrfs: change btrfs_csum_final result param type to u8

2016-09-17 Thread Domagoj Tršan
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); Domagoj Tršan (1):