diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-11-16 11:24:38 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-11-23 19:53:01 +0100 |
| commit | 3100f46985fd14148e79a0e79912180934ef7231 (patch) | |
| tree | c78289196e80e65dd953cdefeeb7e26ccae707e8 /tools/perf/scripts/python/bin | |
| parent | 42de7db475fe895d97934b73a06527a2e4912d93 (diff) | |
btrfs: fix delayed inode count leak after failure to delete inode ref
When updating a delayed inode, if we have an inode ref to delete (the flag
BTRFS_DELAYED_NODE_DEL_IREF is set) and we fail the deletion of the inode
ref item (if it's in another leaf), we abort the transaction and then
never release the delayed count for the inode ref deletion (by calling
btrfs_release_delayed_iref()), resulting in a permanent leak of the
delayed inode.
Fix this by jumping to the 'out' label instead and removing the now no
longer necessary 'err_out' label.
Fixes: 67de11769bd5 ("Btrfs: introduce the delayed inode ref deletion for the single link inode")
Link: https://sashiko.dev/#/bug/linux-3520c6eb-7928-477d-b369-9caff2b98d10
Reviewed-by: Qu Wenruo <wqu@suse.com>
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 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
