diff options
author | Filipe Manana <fdmanana@suse.com> | 2015-11-27 16:12:00 +0000 |
---|---|---|
committer | Filipe Manana <fdmanana@suse.com> | 2015-12-17 10:59:48 +0000 |
commit | 7785a663c4beebdafeb300caf2818e7e6474abd1 (patch) | |
tree | fea9a8efe93a6cedb875f325b735be7ce053bcd1 /tools/perf/scripts/python | |
parent | 50460e37186a2b932eacea24dca804bd1bcd2012 (diff) |
Btrfs: fix memory leaks after transaction is aborted
When a transaction is aborted, or its commit fails before writing the new
superblock and calling btrfs_finish_extent_commit(), we leak reference
counts on the block groups attached to the transaction's delete_bgs list,
because btrfs_finish_extent_commit() is never called for those two cases.
Fix this by dropping their references at btrfs_put_transaction(), which
is called when transactions are aborted (by making the transaction kthread
commit the transaction) or if their commits fail.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions