aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2019-08-22 15:10:54 -0400
committerDavid Sterba <[email protected]>2019-09-09 14:59:17 +0200
commitef1317a1b9a347cdc3967a2048046e8fb4db94ba (patch)
treecbcfa88ce59b8a387a72cb9e2a9772ffdb4f3da2 /tools/perf/util/trace-event-scripting.c
parente182163d9cbe86bc0f754068628df55e6dc073d3 (diff)
btrfs: do not allow reservations if we have pending tickets
If we already have tickets on the list we don't want to steal their reservations. This is a preparation patch for upcoming changes, technically this shouldn't happen today because of the way we add bytes to tickets before adding them to the space_info in most cases. This does not change the FIFO nature of reserve tickets, it simply allows us to enforce it in a different way. Previously it was enforced because any new space would be added to the first ticket on the list, which would result in new reservations getting a reserve ticket. This replaces that mechanism by simply checking to see if we have outstanding reserve tickets and skipping straight to adding a ticket for our reservation. Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions