]> 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)
commit8b886afa4ccb3047b0c16e7bae84faf47cb85a62
tree7a81d28c6d77b7228356ba8b13855ebc00d624af
parent1920feb6e3fcbe6d25bc394d76525e1a77cfd87c
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