diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-08-27 14:10:28 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-02 16:18:04 +0300 |
| commit | e3eec45b91f68c819ac350aac74dc5bd49ff7a7d (patch) | |
| tree | ad2d9f3f05a2b4992d8876612c3e02ff8c1dfdbf /scripts/gdb/linux/xarray.py | |
| parent | 8e36ab6903b5856f983aa0b814f3ac55496bae36 (diff) | |
| download | linux-e3eec45b91f68c819ac350aac74dc5bd49ff7a7d.tar.xz | |
btrfs: always drop log root tree reference in btrfs_replay_log()
[ Upstream commit 2f5b8095ea47b142c56c09755a8b1e14145a2d30 ]
Currently we have this odd behaviour:
1) At btrfs_replay_log() we drop the reference of the log root tree if
the call to btrfs_recover_log_trees() failed;
2) But if the call to btrfs_recover_log_trees() did not fail, we don't
drop the reference in btrfs_replay_log() - we expect that
btrfs_recover_log_trees() does it in case it returns success.
Let's simplify this and make btrfs_replay_log() always drop the reference
on the log root tree, not only this simplifies code as it's what makes
sense since it's btrfs_replay_log() who grabbed the reference in the first
place.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
