aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2015-09-23 17:11:16 -0400
committerChris Mason <[email protected]>2015-10-21 18:51:44 -0700
commit0b670dc44c91bd1e5fac15b5ac4c98c8bd255ca2 (patch)
treee0215055573cac5f67c6f6c5a515efdceb60bb07 /tools/perf/util/trace-event-scripting.c
parentd0bd456074dca089579818312da7cbe726ad2ff9 (diff)
Btrfs: fix prealloc under heavy fragmentation conditions
If we are heavily fragmented we will continually try to prealloc the largest extent size we can every time we call btrfs_reserve_extent. This can be very expensive when we are heavily fragmented, burning lots of CPU cycles and loops through the allocator. So instead notice when we get a smaller chunk from the allocator than what we specified and use this as the new maximum size we try to allocate. Thanks, Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions