21 struct buffer_head *bh,
int sz)
24 __u32 provided, calculated;
25 struct ext4_sb_info *sbi =
EXT4_SB(sb);
32 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (
__u8 *)bh->b_data, sz);
35 provided |= (hi << 16);
39 return provided == calculated;
44 struct buffer_head *bh,
int sz)
47 struct ext4_sb_info *sbi =
EXT4_SB(sb);
53 csum = ext4_chksum(sbi, sbi->s_csum_seed, (
__u8 *)bh->b_data, sz);
61 struct buffer_head *bh)
64 __u32 provided, calculated;
65 struct ext4_sb_info *sbi =
EXT4_SB(sb);
66 int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8;
73 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (
__u8 *)bh->b_data, sz);
76 provided |= (hi << 16);
80 if (provided == calculated)
88 struct buffer_head *bh)
90 int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8;
92 struct ext4_sb_info *sbi =
EXT4_SB(sb);
98 csum = ext4_chksum(sbi, sbi->s_csum_seed, (
__u8 *)bh->b_data, sz);