]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: remove the unnecessary path parameter for scrub_raid56_parity()
authorQu Wenruo <wqu@suse.com>
Tue, 14 Dec 2021 13:01:43 +0000 (21:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:26 +0000 (14:18 +0100)
commit03cb5e3a0a810d16b72fdd4ea5b40a8610efc0fb
tree9bad3fe3db39dce8db63337f4487e73f9a7ceb94
parentc34be1fa8bbf598071504f076e07b62dacc66d94
btrfs: scrub: remove the unnecessary path parameter for scrub_raid56_parity()

In function scrub_stripe() we allocated two btrfs_path's, one @path for
extent tree search and another @ppath for full stripe extent tree search
for RAID56.

This is totally umncessary, as the @ppath usage is completely inside
scrub_raid56_parity(), thus we can move the path allocation into
scrub_raid56_parity() completely.

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