aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2020-02-25 12:56:13 +0900
committerDavid Sterba <[email protected]>2020-03-23 17:01:49 +0100
commit5badf512ecd0530fbb517c999fccacf6a9d87dc1 (patch)
tree75ad369e9c035a73f97abf0a7ad99982e51a0079 /tools/perf/scripts/python
parent560156cb25fcb423969543d8bc93fe95eedc6b4c (diff)
btrfs: factor out decide_stripe_size()
Factor out decide_stripe_size() from __btrfs_alloc_chunk(). This function calculates the actual stripe size to allocate. decide_stripe_size() handles the common case to round down the 'ndevs' to 'devs_increment' and check the upper and lower limitation of 'ndevs'. decide_stripe_size_regular() decides the size of a stripe and the size of a chunk. The policy is to maximize the number of stripes. This commit has no functional changes. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Naohiro Aota <[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