summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-10-02 17:37:15 +0100
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:24 +0200
commit1cf81f2196914c9a0ad192b68e1eb2ba7747a6d4 (patch)
tree4a9f00a315c2318676927c3632c69c1caf3444d5 /tools/perf/scripts/python/stackcollapse.py
parentba35b470084d97d729da87e6d2a1e55571a9aada (diff)
downloadlinux-1cf81f2196914c9a0ad192b68e1eb2ba7747a6d4.tar.gz
linux-1cf81f2196914c9a0ad192b68e1eb2ba7747a6d4.zip
btrfs: qgroup: fix leak of qgroups in rb tree after failure to enable quotas
When enabling quotas we add struct btrfs_qroup items to the rbtree fs_info->qgroup_tree, however if there's an error during the quota enable operation after adding those items, we exit without removing the items from the rbtree and freeing them. Fix this by calling btrfs_free_qgroup_config() on error, which also deletes all sysfs entries (it calls btrfs_sysfs_del_qgroups()). Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions