]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
btrfs: remove redundant path release when processing dentry during log replay
authorFilipe Manana <fdmanana@suse.com>
Mon, 1 Sep 2025 16:03:46 +0000 (17:03 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:20 +0000 (08:49 +0200)
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>
fs/btrfs/tree-log.c

index de1f1c024dc0f9ed9e7d48dd7227a0d6453f79e4..65b8858e82d1d74d26c0f567c1c4da81ed189857 100644 (file)
@@ -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) {