btrfs: remove redundant path release when replaying a log tree
authorFilipe Manana <fdmanana@suse.com>
Wed, 21 May 2025 16:56:25 +0000 (17:56 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:50:34 +0000 (23:50 +0200)
commit6466084df6b083b6f0778aa9adcb83cb8880597e
treed0b891eae3ed586d5e13765374788911d9855384
parent2a5898c4aac67494c2f0f7fe38373c95c371c930
btrfs: remove redundant path release when replaying a log tree

There's no need to call btrfs_release_path() before calling
btrfs_init_root_free_objectid() as we have released the path already at
the top of the loop and the previous call to fixup_inode_link_counts()
also releases the path. So remove it to simplify the code.

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>
fs/btrfs/tree-log.c