btrfs: replace memset with memzero_page in data checksum verification
authorQu Wenruo <wqu@suse.com>
Fri, 25 Mar 2022 09:37:59 +0000 (17:37 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:10 +0000 (17:03 +0200)
commitb06660b59545f5c2a5c7f12fabaad73f9c6e2e33
tree7a81d28c6d77b7228356ba8b13855ebc00d624af
parentd4135134ab8feb994369d44884733e8031b0f800
btrfs: replace memset with memzero_page in data checksum verification

The original code resets the page to 0x1 for not apparent reason, it's
been like that since the initial 2007 code added in commit 07157aacb1ec
("Btrfs: Add file data csums back in via hooks in the extent map code").

It could mean that a failed buffer can be detected from the data but
that's just a guess and any value is good.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c