diff options
author | Qu Wenruo <wqu@suse.com> | 2023-06-27 10:34:31 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-08-21 15:52:12 +0300 |
commit | ed3764f726b24099396734aa1a5b41ae7e0fac60 (patch) | |
tree | d7b6cb0051189e5c3779c31a4810b2e8428f0701 /fs/btrfs/dev-replace.c | |
parent | 966de47ff0c9e64d74e1719e4480b7c34f6190fa (diff) | |
download | linux-ed3764f726b24099396734aa1a5b41ae7e0fac60.tar.xz |
btrfs: add comments for btrfs_map_block()
The function btrfs_map_block() is a critical part of the btrfs storage
layer, which handles mapping of logical ranges to physical ranges.
Thus it's better to have some basic explanation, especially on the
following points:
- Segment split by various boundaries
As a continuous logical range may be split into different segments,
due to various factors like zones and RAID0/5/6/10 boundaries.
- The meaning of @mirror_num
- The possible single stripe optimization
- One deprecated parameter @need_raid_map
Just explicitly mark it deprecated so we're aware of the problem.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions