Commit 7885ca4
btrfs: fix transaction handle leaks in btrfs_last_identity_remap_gone()
btrfs_abort_transaction(), unlike btrfs_commit_transaction(), doesn't
also free the transaction handle. Fix the instances in
btrfs_last_identity_remap_gone() where we're also leaking the
transaction on abort.
Reported-by: Chris Mason <clm@fb.com>
Link: https://lore.kernel.org/linux-btrfs/20260125125129.2245240-1-clm@meta.com/
Fixes: 979e1dc ("btrfs: handle deletions from remapped block group")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 54b9395 commit 7885ca4
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4723 | 4723 | | |
4724 | 4724 | | |
4725 | 4725 | | |
| 4726 | + | |
4726 | 4727 | | |
4727 | 4728 | | |
4728 | 4729 | | |
| |||
4732 | 4733 | | |
4733 | 4734 | | |
4734 | 4735 | | |
| 4736 | + | |
4735 | 4737 | | |
4736 | 4738 | | |
4737 | 4739 | | |
| |||
4750 | 4752 | | |
4751 | 4753 | | |
4752 | 4754 | | |
| 4755 | + | |
4753 | 4756 | | |
4754 | 4757 | | |
4755 | 4758 | | |
| |||
0 commit comments