summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-21 17:56:25 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:50:34 +0200
commit6466084df6b083b6f0778aa9adcb83cb8880597e (patch)
treed0b891eae3ed586d5e13765374788911d9855384 /fs/btrfs/tree-log.c
parent2a5898c4aac67494c2f0f7fe38373c95c371c930 (diff)
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 6a60f072c365..e52e15d46114 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -7302,8 +7302,6 @@ again:
if (!ret && wc.stage == LOG_WALK_REPLAY_ALL) {
struct btrfs_root *root = wc.replay_dest;
- btrfs_release_path(path);
-
/*
* We have just replayed everything, and the highest
* objectid of fs roots probably has changed in case