Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp909978rdb; Fri, 9 Feb 2024 05:06:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU41gzOKnXrWcuaL0+0DLa0DRcLklwaFy5EFacCB7BeEVG9ojufKazDhb4GUd/bOprBNEMfGlpRH8ZpixDQXBJ84wx1GY1YuE+Z+i3TcQ== X-Google-Smtp-Source: AGHT+IF9x5tfdRYdrDYVsb6Yv0YgU9/La0W9t4wNEK+X9hKDjoaoiWl1PocUWginHB+t98wsnFh7 X-Received: by 2002:a05:6358:7e56:b0:178:c7e1:52ba with SMTP id p22-20020a0563587e5600b00178c7e152bamr1465960rwm.20.1707484017751; Fri, 09 Feb 2024 05:06:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707484017; cv=pass; d=google.com; s=arc-20160816; b=KxIgphQk2sYvnnxZRveuRydoU6YFdLX8LsM98tqAAQHKPCF1ABILlT4ZREoy6ew5fa SFcyoL9GB02lSlPiFtMbDaB0tuMe7ovtMTD62rQGeWe3Vm9bZdbHCq97FBHPxQYvWmUr XgkQPe+KcXVDNzuWSld2PIerGQrJI4ImeZwLVzkgvyBTvZKnVqlhFFNfeTdiedjeFeTt zmp9eygCnAy/3+oRFN7TmugnF0jxe7i/0n0dylRQSu+beXmoypNDG+Nnh1A8uvEYqzJm J86mdWOwg2/kZ0VNWcM3ile4yguHzwX8OIElHbNiAVEchuVzKdmzgsZP6D6b4PbhBn9R rj9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PiyOPK6H5hKFq9MEvHKb1PtlMoTnfyodXrOPwEEtby0=; fh=B6zCRdnHZGDyNsRqS8K9oz6S82moAhg7Qa85sePbsdc=; b=bgTMiV2SPW71LSbn7MhFcGDX7WxErxyl/acxc1tG9dczPy383z+Tq+9mfzkt1bV7LS 9vaz47zuqyIIdvo2FCraSOBwzcEq0ykVqzUPO/66smiTMfWymLzQDCdR+743j5A5CrRZ Isy0h3ayGCslg7Kva5qsH9a9hGpgNMr90lx62WY+XOrWW+K7/rWWMWCgFmv/K05Fhnik DtQI6eV25WH4eNy8BQrHXwui+YZGS26yGvqDf6HQK10H+wsImKO2wun4DVSYkFVdD7Uu A3o2G9D+d0HuI9aJ+MD3VxWW6aXN7mw8YJNOEUL94HK4O74ooL0jkqNCku7KDxV1BVyj B5uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lwzTvJve; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-59339-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWi57OqEUO7Ugh9DTXEHScC1XHAmKZ5NPY5W9n/FMcZ/4NBTDChzF+4iAWVfJafwIw2gjmlcocHH+btyUVTEdhvg/ByDTl/SNleHpBZiw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k25-20020a6568d9000000b005dc122821cbsi1715905pgt.99.2024.02.09.05.06.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 05:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59339-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lwzTvJve; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-59339-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B002282B06 for ; Fri, 9 Feb 2024 13:06:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FE0137706; Fri, 9 Feb 2024 13:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lwzTvJve" Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C9B6376F2 for ; Fri, 9 Feb 2024 13:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484004; cv=none; b=atGZ6jvC/4JbNFVRo5h/jbeoGWzdV3IQfzY0PELm6f553zfgtQs0mbLpJKiwG9Jt4Bk8tvWelyKb58ULtzTYjUxQ2aSkU3EJ+8M6BaPmllbn9aL8iHPhSaFehwm1T319HzmF5Dwd5yCK3Qcc85/AvoF40pDpbk7fIQBKG2j/qEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484004; c=relaxed/simple; bh=PiyOPK6H5hKFq9MEvHKb1PtlMoTnfyodXrOPwEEtby0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tvfxpoqZ5aNL2tIW7IRMkGQBn2aByG6PJQ1rBiJA9nChyl23Sx1vEN3s0RPfLJuPyOl3/cWIZ5/f6gkCKjdljAz+2hcuFZFzj2T1di9pCvmuvzuykZ6gDgH1bFwyJGKVsaLIL42GIkpvSM+AKGL/xOo+yQ/5ZaEisf1pHiOn5D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lwzTvJve; arc=none smtp.client-ip=209.85.222.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-78405c9a152so48542885a.1 for ; Fri, 09 Feb 2024 05:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707484002; x=1708088802; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PiyOPK6H5hKFq9MEvHKb1PtlMoTnfyodXrOPwEEtby0=; b=lwzTvJve3bzjSA0iX3NanIgmosVscSZ/YQlWtRvds8oMlooaIrm56hDEzoKP9KZzKX /yiqvxElHfx6HUbCQTj3HGGj6o3evunZhVulpK/9SwPKUWv/J/g5WDXiLv9VVz4Fvnud Rfavrpalmjwevj0dJh4eOOjwfiV58uyyL/8Kxkz9wAQ+/pGxCp8Ok0c6hzTIeTAH/yOw P9wtjuBLrh3YgseuXB73BprHGk/Tl6Tt8TAy/woTgCBz+MjnXEbQBPmppAhQKezj1Ryk RnPAWPnUlDp34roJ70GUBScrm0xct2/R8MtL+SK1L4dR2dUCC3l1tEqFPTJyrvwpMfSQ ZJKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707484002; x=1708088802; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PiyOPK6H5hKFq9MEvHKb1PtlMoTnfyodXrOPwEEtby0=; b=hWIQjcNkosFF9rlZt1hdrUPkvpralrVRBvMEdAFEVCWdvlLVwUataZZyFQAouIhu67 QaG3fq4MAn4zsAKap5Je8hCsipy8zAFzmNTTifrTy2XbET2CdZ93TZHtE9T4xAbQZT/O MGLfnhcUXw9bAVcBazipbiTZ3bZ4tFz40SshFqgbb/85fMjf3hBbKoTlfxdrmsLKrv54 gO5lu+Ulig59LO6riI6z8JOxF2h7E2HK026E5mSPoMx9i6pZWOhwVokzJCH4KkAYbzT5 HyMJW+k3Z1NBe2l084HTL3hcPfhDufUsLcQhBe6eNzbbMGo1lrdgUTTbKfvdor3Vk6ZC W4YQ== X-Forwarded-Encrypted: i=1; AJvYcCVGo9Z14GJW5KMcflGxuEQ60bMte4UdwijIT79V+2ntMalJuoPqglEGE9QYImp+UBE/+ZFTUO6AvabcfbH+OChPWLke1DS7e9zkk2z0 X-Gm-Message-State: AOJu0YytdIT6T1t9oBaZitZkl8vqV/+OgSh/Vqc1poIbbxFWSKCt3WPe hNtQVBx5z/SiJXtYx+kyD5iK0eBa/Oztqm4gAGJsvWm5ka3IvSSTC+YkdRvmIYjRsF/ow+DtQ7s LgrZj6O9FAWEU4ucNsg+47yNibZE+c5GiU/Sq X-Received: by 2002:a05:6214:4105:b0:686:a185:dc11 with SMTP id kc5-20020a056214410500b00686a185dc11mr1704783qvb.55.1707484001900; Fri, 09 Feb 2024 05:06:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240205-b4-rbtree-v1-0-995e3eee38c0@google.com> <20240205-b4-rbtree-v1-4-995e3eee38c0@google.com> In-Reply-To: <20240205-b4-rbtree-v1-4-995e3eee38c0@google.com> From: Alice Ryhl Date: Fri, 9 Feb 2024 14:06:29 +0100 Message-ID: Subject: Re: [PATCH 4/6] rust: rbtree: add `RBTreeIteratorMut` To: mattgilbride@google.com Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Christian Brauner , Rob Landley , Davidlohr Bueso , Michel Lespinasse , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Gilbride Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 5, 2024 at 4:50=E2=80=AFPM wrote: > > From: Wedson Almeida Filho > > Add mutable Iterator implementation (`RBTreeIteratorMut`) for `RBTree`, > allowing iteration over (key, value) pairs in key order. Only values are > mutable, as mutating keys implies modifying a node's position in the tree= . > > Mutable iteration is used by the binder driver during shutdown to > clean up the tree maintained by the "range allocator" [1]. > > Link: https://lore.kernel.org/rust-for-linux/20231101-rust-binder-v1-6-08= ba9197f637@google.com/ [1] > Signed-off-by: Wedson Almeida Filho > Signed-off-by: Matt Gilbride I have looked at these bindings many times over the past year. They look good to me. Reviewed-by: Alice Ryhl These abstractions have been very heavily exercised by the Rust Binder driver. Tested-by: Alice Ryhl