btrfs: remove the need_raid_map parameter from btrfs_map_block()
authorQu Wenruo <wqu@suse.com>
Sun, 17 Sep 2023 10:06:21 +0000 (19:36 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:05 +0000 (16:44 +0200)
commit9fb2acc2fe07f15b6cfe94a4bf910d3dfcd6e127
tree215c99cc6b14af3a302dcd1ab5cf24763b846965
parent732fab95abe2510560c8158e0d2e94460d38b2f4
btrfs: remove the need_raid_map parameter from btrfs_map_block()

The parameter @need_raid_map is mostly a legacy from the old days where
we don't yet have a solid definition on the @mirror_num, and only
check-integrity was using that parameter, while all other call sites
just pass 1 for that parameter.

Now since we have removed check-integrity functionality, we can also
remove the @need_raid_map parameter.

This change will also remove the ability to read P/Q stripe directly
when passing 0 as @need_raid_map.

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/bio.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h
fs/btrfs/zoned.c