From: Filipe Manana Date: Mon, 1 Sep 2025 16:03:46 +0000 (+0100) Subject: btrfs: remove redundant path release when processing dentry during log replay X-Git-Tag: v6.18-rc1~204^2~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bdfa3eddb67e73f57d1e527e1ba2dcca3bd08c4;p=thirdparty%2Flinux.git 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 --- 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) {