[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <qhobdtdwtkux7n5r3b64itvpe7zchm3ovpfmazim3v5ilg34kr@5o5wu3chh5b6>
Date: Wed, 14 Jan 2026 23:13:14 +0100
From: Michal Koutný <mkoutny@...e.com>
To: Yury Norov <ynorov@...dia.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Alistair Popple <apopple@...dia.com>, Byungchul Park <byungchul@...com>,
David Hildenbrand <david@...nel.org>, Gregory Price <gourry@...rry.net>,
Johannes Weiner <hannes@...xchg.org>, Joshua Hahn <joshua.hahnjy@...il.com>,
"Liam R. Howlett" <Liam.Howlett@...cle.com>, Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
Matthew Brost <matthew.brost@...el.com>, Michal Hocko <mhocko@...e.com>, Mike Rapoport <rppt@...nel.org>,
Rakie Kim <rakie.kim@...com>, Suren Baghdasaryan <surenb@...gle.com>,
Tejun Heo <tj@...nel.org>, Vlastimil Babka <vbabka@...e.cz>,
Waiman Long <longman@...hat.com>, Ying Huang <ying.huang@...ux.alibaba.com>,
Zi Yan <ziy@...dia.com>, cgroups@...r.kernel.org, Yury Norov <yury.norov@...il.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>, linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] cgroup: use nodes_and() output where appropriate
On Wed, Jan 14, 2026 at 12:22:15PM -0500, Yury Norov <ynorov@...dia.com> wrote:
> Now that nodes_and() returns true if the result nodemask is not empty,
> drop useless nodes_intersects() in guarantee_online_mems() and
> nodes_empty() in update_nodemasks_hier(), which both are O(N).
>
> Signed-off-by: Yury Norov <ynorov@...dia.com>
> ---
> kernel/cgroup/cpuset.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
Nice improvement.
Reviewed-by: Michal Koutný <mkoutny@...e.com>
Powered by blists - more mailing lists