aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2022-05-13 16:34:31 +0800
committerDavid Sterba <[email protected]>2022-07-25 17:45:36 +0200
commit6d322b483976f34b1217b9c1b4a54fa16c10bdc8 (patch)
tree15f1272375af964e261af4a0a5458269fda16322 /tools/perf/scripts/python
parent0b30f719451ebbf313cdb444a27b00c10cf6e8a5 (diff)
btrfs: use ncopies from btrfs_raid_array in btrfs_num_copies()
For all non-RAID56 profiles, we can use btrfs_raid_array[].ncopies directly, only for RAID5 and RAID6 we need some extra handling as there's no table value for that. For RAID10 there's a change from sub_stripes to ncopies. The values are the same but semantically we want to use number of copies, as this is what btrfs_num_copies does. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions