Commit 9bdfa3ed authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

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: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent f366722f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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) {