]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea66978c74b446e78e401b164dc9ea34222a5423
tree7a81d28c6d77b7228356ba8b13855ebc00d624af
parentf3327866c62d7ac71e36b8106df76fbce7a62775
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