Re: [PATCH 2/8] btrfs: introduce a pure data checksum checking helper

Christoph Hellwig
2022-05-24T08:11:30Z

On Tue, May 24, 2022 at 04:07:41PM +0800, Qu Wenruo wrote:
>> - u32 pgoff, u8 *csum, u8 *csum_expected);
>> + u32 pgoff, u8 *csum, u8 * const csum_expected);
>
> Shouldn't it be "const u8 *" instead?

No, that would bind to the pointer. But we care about the data.