diff options
author | David Sterba <dsterba@suse.com> | 2024-05-22 18:17:05 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:27 +0200 |
commit | 4addc1ffd67ad34394674dc91379dc04cfdd2537 (patch) | |
tree | ef514cdb77b3706d43b5159db3a5ba7214aa9053 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7733b8dd189a9e525c2d53bdd4efb26e04a8d737 (diff) |
btrfs: qgroup: preallocate memory before adding a relation
There's a transaction joined in the qgroup relation add/remove ioctl and
any error will lead to abort/error. We could lift the allocation from
btrfs_add_qgroup_relation() and move it outside of the transaction
context. The relation deletion does not need that.
The ownership of the structure is moved to the add relation handler.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions