diff options
author | Boris Burkov <[email protected]> | 2024-03-21 10:18:39 -0700 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-04-02 19:18:47 +0200 |
commit | 211de93367304ab395357f8cb12568a4d1e20701 (patch) | |
tree | 29dcf31fd1f377ba03d4dbe6b80479da260dc0bf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 71537e35c324ea6fbd68377a4f26bb93a831ae35 (diff) |
btrfs: qgroup: convert PREALLOC to PERTRANS after record_root_in_trans
The transaction is only able to free PERTRANS reservations for a root
once that root has been recorded with the TRANS tag on the roots radix
tree. Therefore, until we are sure that this root will get tagged, it
isn't safe to convert. Generally, this is not an issue as *some*
transaction will likely tag the root before long and this reservation
will get freed in that transaction, but technically it could stick
around until unmount and result in a warning about leaked metadata
reservation space.
This path is most exercised by running the generic/269 fstest with
CONFIG_BTRFS_DEBUG.
Fixes: a6496849671a ("btrfs: fix start transaction qgroup rsv double free")
CC: [email protected] # 6.6+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Boris Burkov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions