From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 357EC34DB4C; Tue, 28 Oct 2025 19:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761679756; cv=none; b=Z4BHG+3JV8BOhtwHoZThA0Cm5Rimg4ROWNV/Y6VkSbrR9H7hNWxv0Z1a94x4vQ8li/hnx7t+7XfNXdeK8JJ8Rqey4mel89CY+hoLH4/R+EZBwb+AacWsnNkCBbThlBHCucWRewsFYQL9ukNv0Xj+K0BmFp+O4o6Af8EwtslSM/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761679756; c=relaxed/simple; bh=yhpHcLEqc9zsTaS9679BExSMSqz7AtnOHsWWNaL0cyE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=S01Pb/U2fLxKduMl7N+mMv4nD6cTJ5q8axGvboPTY4AAkcK4qj/zKxHB56XFgjVJbgFA8idthojRagejaeunV7cmpcRwkM/yt7heVkstDHjJfDh4w+Kua2/0GdjYKoMicbRj0ajooIy+bQBUuGkfcAhgWTJlKYKXj74hxb9tWxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a0E2SCtl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a0E2SCtl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 087CCC4CEE7; Tue, 28 Oct 2025 19:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761679755; bh=yhpHcLEqc9zsTaS9679BExSMSqz7AtnOHsWWNaL0cyE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=a0E2SCtlyBuSS9EJ4MEBr2iRKaZt6OMMa5w4xaTBKA9GFts2L6xjxYXAN8bTYKXOd 7S5NhCso5esNzcqEEMPuaTqZJE1QdG5SUWtTWXGQkFdLRSD+URiPvHueL+dzUvsi55 A5ZyX5z87zaXjITntGrggXU7p8y3eSge3SU4vvB4vPJJeM4eRkmUT0yeiy5XxWB2fF VClV57v87mJZoo/A5wOdjDektqFdiQML3upLIvDSLe7LzDRGAV3dCdggf+Tl5B7lIV H+TC0IfoBzYIOWwgk3ffzsRNyz/IMICkrohO5hqyC+dt7YgbI2jkGKFO0nFlI4L/KQ NaKR5qD2QLCTA== Message-ID: <7f9073f8-c7c6-4a9f-96b1-beb5974078af@kernel.org> Date: Tue, 28 Oct 2025 20:29:10 +0100 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/5] rust: id_pool: do not supply starting capacity To: Alice Ryhl Cc: Greg Kroah-Hartman , Yury Norov , =?UTF-8?Q?Arve_Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Burak Emir , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251028-binder-bitmap-v3-0-32822d4b3207@google.com> <20251028-binder-bitmap-v3-3-32822d4b3207@google.com> From: Danilo Krummrich Content-Language: en-US In-Reply-To: <20251028-binder-bitmap-v3-3-32822d4b3207@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/28/25 11:55 AM, Alice Ryhl wrote: > Rust Binder wants to use inline bitmaps whenever possible to avoid > allocations, so introduce a constructor for an IdPool with arbitrary > capacity that stores the bitmap inline. > > The existing constructor could be renamed to with_capacity() to match > constructors for other similar types, but it is removed as there is > currently no user for it. > > Acked-by: Yury Norov (NVIDIA) > Reviewed-by: Burak Emir > Signed-off-by: Alice Ryhl Reviewed-by: Danilo Krummrich