Skip to content

Commit f3e6118

Browse files
committed
btrfs-progs: fix btrfs-sb-mod build due to btrfs_csum_data()
The commit 6f5b0b1 ("btrfs-progs: remove the unused fs_info parameter for btrfs_csum_data()") changed btrfs_csum_data() but btrfs-sb-mod was not update so build fails. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent cfd3d77 commit f3e6118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

btrfs-sb-mod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int check_csum_superblock(void *sb)
3636
u8 result[BTRFS_CSUM_SIZE];
3737
u16 csum_type = btrfs_super_csum_type(sb);
3838

39-
btrfs_csum_data(NULL, csum_type, (unsigned char *)sb + BTRFS_CSUM_SIZE,
39+
btrfs_csum_data(csum_type, (unsigned char *)sb + BTRFS_CSUM_SIZE,
4040
result, BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE);
4141

4242
return (memcmp(sb, result, csum_size) == 0);
@@ -48,7 +48,7 @@ static void update_block_csum(void *block)
4848
struct btrfs_header *hdr;
4949
u16 csum_type = btrfs_super_csum_type(block);
5050

51-
btrfs_csum_data(NULL, csum_type, (unsigned char *)block + BTRFS_CSUM_SIZE,
51+
btrfs_csum_data(csum_type, (unsigned char *)block + BTRFS_CSUM_SIZE,
5252
result, BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE);
5353

5454
memset(block, 0, BTRFS_CSUM_SIZE);

0 commit comments

Comments
 (0)