btrfs: scrub: remove root and csum_root arguments from scrub_simple_mirror()
authorQu Wenruo <wqu@suse.com>
Mon, 16 Jan 2023 07:04:13 +0000 (15:04 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:16 +0000 (18:01 +0200)
commit6b4d375a81551bec17854b51e13efb58b45c8a76
treea21f71f8191c0fd7add290a4df161ed404fd05d4
parent1d40329736907587ac5995d2d4b3263759ff84e3
btrfs: scrub: remove root and csum_root arguments from scrub_simple_mirror()

We don't need to pass the roots as arguments, reading them from the
rb-tree is cheap.  Thus there is really not much need to pre-fetch it
and pass it all the way from scrub_stripe().

And we already have more than enough arguments in scrub_simple_mirror()
and scrub_simple_stripe(), it's better to remove them and only grab
those roots in scrub_simple_mirror().

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