]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: fix delayed ref refcount leak in debug assertion
authorLeo Martins <loemra.dev@gmail.com>
Wed, 28 May 2025 00:04:21 +0000 (17:04 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 19 Jun 2025 13:18:35 +0000 (15:18 +0200)
commitdd276214e439db08f444fd3e07e9fe4c9e0ca210
tree11084fb8f0314339653114bd6fbe49297ed70a84
parentc769be2d3dbb165a3d432f4fcca2c80fabb35877
btrfs: fix delayed ref refcount leak in debug assertion

If the delayed_root is not empty we are increasing the number of
references to a delayed_node without decreasing it, causing a leak.  Fix
by decrementing the delayed_node reference count.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Leo Martins <loemra.dev@gmail.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
[ Remove the changelog from the commit message. ]
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-inode.c