diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-12-12 17:18:25 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-12-16 22:53:15 +0100 |
| commit | c1c050f92d8f6aac4e17f7f2230160794fceef0c (patch) | |
| tree | 86964e76945381808f45ef0bd6f451eb166059fc /include/linux | |
| parent | f8da41de0bff9eb1d774a7253da0c9f637c4470a (diff) | |
btrfs: fix reservation leak in some error paths when inserting inline extent
If we fail to allocate a path or join a transaction, we return from
__cow_file_range_inline() without freeing the reserved qgroup data,
resulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data()
in such cases.
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 'include/linux')
0 files changed, 0 insertions, 0 deletions
