diff options
author | Josef Bacik <[email protected]> | 2018-11-21 14:03:06 -0500 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-02-25 14:13:33 +0100 |
commit | d89dbefb8c5f7289ad404676869135501437c04e (patch) | |
tree | d7003145fdfbea1a17b38340e18d0f254371f738 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 3f93aef535c8ea03e40cd8acf0753b3e6ed33e96 (diff) |
btrfs: check if there are free block groups for commit
may_commit_transaction will skip committing the transaction if we don't
have enough pinned space or if we're trying to find space for a SYSTEM
chunk. However, if we have pending free block groups in this transaction
we still want to commit as we may be able to allocate a chunk to make
our reservation. So instead of just returning ENOSPC, check if we have
free block groups pending, and if so commit the transaction to allow us
to use that free space.
Reviewed-by: Omar Sandoval <[email protected]>
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/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions