diff options
| author | Qu Wenruo <wqu@suse.com> | 2023-02-07 12:26:13 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2023-04-17 18:01:14 +0200 |
| commit | 4ced85f81a7a67e190a4ff4e14d8cc04978a3767 (patch) | |
| tree | 998d8a705b43d03ff29ceb975806a2f32ebdb004 /include/trace | |
| parent | btrfs: simplify the bioc argument for handle_ops_on_dev_replace() (diff) | |
| download | linux-4ced85f81a7a67e190a4ff4e14d8cc04978a3767.tar.gz linux-4ced85f81a7a67e190a4ff4e14d8cc04978a3767.zip | |
btrfs: reduce type width of btrfs_io_contexts
That structure is our ultimate object for all __btrfs_map_block()
related functions. We have some hard to understand members, like
tgtdev_map, but without any comments.
This patch will improve the situation:
- Add extra comments for num_stripes, mirror_num, num_tgtdevs and
tgtdev_map[]
Especially for the last two members, add a dedicated (thus very long)
comments for them, with example to explain it.
- Shrink those int members to u16.
In fact our on-disk format is only using u16 for num_stripes, thus
no need to use int at all.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions
