summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-09-01 17:03:46 +0100
committerDavid Sterba <dsterba@suse.com>2025-09-23 08:49:20 +0200
commit9bdfa3eddb67e73f57d1e527e1ba2dcca3bd08c4 (patch)
treeb0f4c173a3cab6e7e0197ae14f9417a826d05162
parentf366722f3370dd561d45e667484c458245977e79 (diff)
btrfs: remove redundant path release when processing dentry during log replay
At replay_one_one() we have a redundant btrfs_release_path() just before calling insert_one_name(), as some lines above we have already released the path with another btrfs_release_path() call. So remove it. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/tree-log.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index de1f1c024dc0..65b8858e82d1 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2079,7 +2079,6 @@ static noinline int replay_one_name(struct walk_control *wc,
update_size = false;
goto out;
}
- btrfs_release_path(path);
ret = insert_one_name(trans, root, wc->log_key.objectid, wc->log_key.offset,
&name, &log_key);
if (ret && ret != -ENOENT && ret != -EEXIST) {