summaryrefslogtreecommitdiff
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2023-02-07 12:26:13 +0800
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:14 +0200
commit4ced85f81a7a67e190a4ff4e14d8cc04978a3767 (patch)
tree998d8a705b43d03ff29ceb975806a2f32ebdb004 /fs/btrfs/scrub.c
parentbe5c7edbfdf1112cbbdd15700f33f37b66fc8976 (diff)
downloadlwn-4ced85f81a7a67e190a4ff4e14d8cc04978a3767.tar.gz
lwn-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 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions