btrfs: scrub: simplify tree block checksum calculation
authorDavid Sterba <dsterba@suse.com>
Fri, 29 May 2020 13:54:41 +0000 (15:54 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:23 +0000 (12:55 +0200)
commit521e1022274000af1981411673e4019d44bdea7f
tree2cf1ff525c1586c5bebb7f0a599a62f369e88406
parentd41ebef2005f3b1669da334183088668c168c74a
btrfs: scrub: simplify tree block checksum calculation

Use a simpler iteration over tree block pages, same what csum_tree_block
does: first page always exists, loop over the rest.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c