From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (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 D6F27492514 for ; Tue, 9 Jun 2026 15:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781019779; cv=none; b=otJs8d7rDKhC3VZH1h5lYw+xCj8DHxHsg5L7RihNNzXTY13HjlTCuXY0ypyYqAXIkeISrLqEOKw9wcnhOa6Btu2LNzQ/tfjS84+P8UbNwPaCItGSmaqQ+2N7Qw/9ylqt9XuNIOvCU1NfkWVNOYdE7xBTKOCiXGlvTolSgKuwI8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781019779; c=relaxed/simple; bh=IYTad2VMSstbrfqv+BvNe0iFG8zMHmrDimOGxJEiK/s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BR3daeIGw2LY6eKVQO7tnhoYGK4YbjnKqlYlBNMty9TbwAJ5qjX+cf6Ucz6WpMFzozsA5Ra0bYyUjPB3JWVCrnHGrpCfFn6C1mrDBazGA1wAxDhCqzxLggNDcZU+UUsFl9kfQdimdjVJhn8+77XoSPCTy0NIO+0M49SYNkFHT+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=nj5hcN6J; arc=none smtp.client-ip=209.85.217.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="nj5hcN6J" Received: by mail-vs1-f48.google.com with SMTP id ada2fe7eead31-6c36543e834so1712193137.1 for ; Tue, 09 Jun 2026 08:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1781019777; x=1781624577; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5m1lBs+cPKEi9J2sI7ojOxRGjTO3OcUCSuFxlAgPpsc=; b=nj5hcN6JlQJgOWYDLK4wfeASTCo43yQla1RhHtAEJHJzk6+vjVRDpXrNTIquWtLtCd HjBzwPdKkjjkRU7VKkLSQbGOsYvhGkkLGqFKcPjBv7R4JcAf6YTDugNIDtVxfWpSeT7I zeYMHyK+K3xp5v84NufOJ29Oz7itqDkYrA4sJwNJ/R3bfYgZIxuCCpl4Bn0b3GsSTrBF IJTqP24MIsOb0KCW2QSatNzD3gTFWyaqnh3WTH2iKqcY3PLT212IGggGxASaVWs2uagn E/vFrJh/dQNtu+kyuTvOzYwkxf5rTSzP/CQUEe99DCDEL1JrEIL3XYwtlUIYmcOsfkc5 Q4JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781019777; x=1781624577; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5m1lBs+cPKEi9J2sI7ojOxRGjTO3OcUCSuFxlAgPpsc=; b=NlxTKnXxKktO1md7J7lM/QVn+s24bNy/GklLabsqs+Agfhs+Z4h/Hp6p/fWK6BtaVS lgiE2emV1m6H/J2jQsB9sbqknfT8LZgp+1Y8gTZAp/b9PHwXokAwBSt7lt2+pUsslRI8 /xjA7QR73n3KwoMzjlbfPdvJq0AYqMCngnlJFe1aXOjNzWjvhnozkTm9mQ9PeZWYFXCG mIbNoUW7nwdykHOcxet8Ei3jlY3hdycYMofublq6RKjM4yIjaplpkIZ5KI63RhqqRJ3o NzO05Rxsv+Ud5hQ1adJB2oMgeBC2SIOLtdC/eoQPCFRFpGNp9+spu/r16VdwVIGfENaZ NbXg== X-Forwarded-Encrypted: i=1; AFNElJ9xL/cFD/9LZBHb58R5kqQjEqvFXTBBND1/RoPoxE0j8QZyaaw7X4oieCYWmk9bDE6iAwC0Pal6aRGp324=@vger.kernel.org X-Gm-Message-State: AOJu0YxriVzTi322XrBqpOnoHpFQJ55yQdyo7PRteU1n6U5hgGUX1Kag NT8CGvDhvD8NDi7hLP4h90J+dei+CIZ9qvw4/d30XxdbB3Eh2c3YHKFxjt8RcMSAaVM= X-Gm-Gg: Acq92OFVqHvmymb5bormg9q6o9o1mlmhqOUD0a13m1gLC7BaVe21xliMuIGjEnZmFGB f8pKZCqCohp3kUnc53gVMKzZrTnavl2HUkA7f2KrNv1hKO4WNOGRL7OzUfh+E+BXqAiVERIDw8n 3qoJ1FBU6qMGZpHrMvhIqPOVdKkGOyfu1FEd19XsL0y4buaW0sa65jS7ieLS5wppfOquGXps1oA tdg/RRKzpJqwIx8qeTQ6se/A55VFeag13i8ETUPA7/Bv2jQSdct4jUeoopUw/AhPnqdlaDK9dJK 98JbOZejqCIE0WnWY8NgF5mzpBTlOvdN6DTqL8MJQCqUAL0FyV0vIqllG3F3+89BXqYiPNZJE0B MEyFHJqF6eh/QlexUh37uO1d+AClDtAMvI44JmwYIoDg4we2cG/BwtR8Bs6rweYETrfz5hL/oKB BHZNRTGXT9Q+T42fQ8sUIo8ynm1jw7S4pmMpZfDhLapf+c9p1BCJ2LOoqP4eXcTugKdKv5gA7NY 5++DZpFmF5q/J1oKA== X-Received: by 2002:a05:6102:149a:b0:636:c0c:4d91 with SMTP id ada2fe7eead31-6ff07fd12f7mr12087727137.28.1781019776857; Tue, 09 Jun 2026 08:42:56 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8ceccdb5e92sm205961926d6.11.2026.06.09.08.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 08:42:56 -0700 (PDT) Date: Tue, 9 Jun 2026 11:42:54 -0400 From: Gregory Price To: Lorenzo Stoakes Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@meta.com, longman@redhat.com, chenridong@huaweicloud.com, akpm@linux-foundation.org, david@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, kasong@tencent.com, qi.zheng@linux.dev, shakeel.butt@linux.dev, baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, rientjes@google.com, chrisl@kernel.org, shikemeng@huaweicloud.com, nphamcs@gmail.com, baoquan.he@linux.dev, youngjun.park@lge.com, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, jackmanb@google.com, ziy@nvidia.com Subject: Re: [PATCH] mm: constify oom_control, scan_control, and alloc_context nodemask Message-ID: References: <20260609002919.3967782-1-gourry@gourry.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jun 09, 2026 at 08:41:59AM +0100, Lorenzo Stoakes wrote: > On Mon, Jun 08, 2026 at 08:29:19PM -0400, Gregory Price wrote: > > The nodemasks in these structures may come from a variety of sources, > > including tasks and cpusets - and should never be modified by any code > > when being passed around inside another context. > > > > Signed-off-by: Gregory Price > > Thanks for doing this, it's nice to gradually up our const correctness game > (as much as C can ever be const correct :) > I've actually been carrying this patch locally for about a year in the private nodes work. Sorry i didn't send it sooner. There is likely more work to be done here. > LGTM, builds locally too, so: > > Reviewed-by: Lorenzo Stoakes >