aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2020-07-21 10:22:30 -0400
committerDavid Sterba <[email protected]>2020-10-07 12:06:53 +0200
commitbb86bd3db82ed6d28d4ab4ed33c7ee3b27290e49 (patch)
treebdfbf5847310191fe0bd865700fd265b04326b4d /tools/perf/scripts
parent028270013586681b02db49be20e05b56e662dc55 (diff)
btrfs: don't force commit if we are data
We used to unconditionally commit the transaction at least 2 times and then on the 3rd try check against pinned space to make sure committing the transaction was worth the effort. This is overkill, we know nobody is going to steal our reservation, and if we can't make our reservation with the pinned amount simply bail out. This also cleans up the passing of bytes_needed to may_commit_transaction, as that was the thing we added into place in order to accomplish this behavior. We no longer need it so remove that mess. Reviewed-by: Nikolay Borisov <[email protected]> Tested-by: Nikolay Borisov <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions