diff options
author | Jeff Mahoney <[email protected]> | 2020-02-11 15:25:37 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-02-19 00:35:54 +0100 |
commit | 81f7eb00ff5bb8326e82503a32809421d14abb8a (patch) | |
tree | 6c2ddb770d4bcdbd85db0881d040db3bbd21eb7b /tools/perf/util/trace-event-scripting.c | |
parent | 52e29e331070cd7d52a64cbf1b0958212a340e28 (diff) |
btrfs: destroy qgroup extent records on transaction abort
We clean up the delayed references when we abort a transaction but we
leave the pending qgroup extent records behind, leaking memory.
This patch destroys the extent records when we destroy the delayed refs
and makes sure ensure they're gone before releasing the transaction.
Fixes: 3368d001ba5d ("btrfs: qgroup: Record possible quota-related extent for qgroup.")
CC: [email protected] # 4.4+
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Jeff Mahoney <[email protected]>
[ Rebased to latest upstream, remove to_qgroup() helper, use
rbtree_postorder_for_each_entry_safe() wrapper ]
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[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