aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-03-21 11:13:59 +0000
committerDavid Sterba <[email protected]>2023-04-17 18:01:20 +0200
commitf8f210dc84709804c9f952297f2bfafa6ea6b4bd (patch)
treeb874ab87ec28109e162aeb7f5f4ea022cce75eee /tools/perf/scripts/python/bin/stackcollapse-report
parent5630e2bcfe22392611a88a2a1e6240ff910c480c (diff)
btrfs: calculate the right space for delayed refs when updating global reserve
When updating the global block reserve, we account for the 6 items needed by an unlink operation and the 6 delayed references for each one of those items. However the calculation for the delayed references is not correct in case we have the free space tree enabled, as in that case we need to touch the free space tree as well and therefore need twice the number of bytes. So use the btrfs_calc_delayed_ref_bytes() helper to calculate the number of bytes need for the delayed references at btrfs_update_global_block_rsv(). Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions