diff options
author | 2024-05-22 18:17:05 +0200 | |
---|---|---|
committer | 2024-07-11 15:33:27 +0200 | |
commit | 4addc1ffd67ad34394674dc91379dc04cfdd2537 (patch) | |
tree | ef514cdb77b3706d43b5159db3a5ba7214aa9053 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: abort transaction on errors in btrfs_free_chunk() (diff) | |
download | wireguard-linux-4addc1ffd67ad34394674dc91379dc04cfdd2537.tar.xz wireguard-linux-4addc1ffd67ad34394674dc91379dc04cfdd2537.zip |
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