From 9bdfa3eddb67e73f57d1e527e1ba2dcca3bd08c4 Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Mon, 1 Sep 2025 17:03:46 +0100 Subject: [PATCH] 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- fs/btrfs/tree-log.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index de1f1c024dc0f..65b8858e82d1d 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) { -- 2.47.3