diff options
author | Zhao Lei <[email protected]> | 2015-02-14 13:23:45 +0800 |
---|---|---|
committer | Chris Mason <[email protected]> | 2015-04-13 07:26:40 -0700 |
commit | 94b947b2f3f84f3bba25d34c4e2a229fc2276830 (patch) | |
tree | 802839c6379786086b980f44a6ed852bcbcb8e86 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | de249e66a73d696666281cd812087979c6fae552 (diff) |
btrfs: fix condition of commit transaction
Old code bypass commit transaction when we don't have enough
pinned space, but another case is there exist freed bgs in current
transction, it have possibility to make alloc_chunk success.
This patch modify the condition to:
if (have_free_bg || have_pinned_space) commit_transaction()
Confirmed above action by printk before and after patch.
Signed-off-by: Zhao Lei <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions