[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250424191722.GC840@cmpxchg.org>
Date: Thu, 24 Apr 2025 15:17:22 -0400
From: Johannes Weiner <hannes@...xchg.org>
To: Pedro Falcato <pfalcato@...e.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: workingset: Simplify lockdep check in update_node
On Mon, Apr 21, 2025 at 06:16:28PM +0100, Pedro Falcato wrote:
> container_of(node->array, ..., i_pages) just to access i_pages again
> is an incredibly roundabout way of accessing node->array itself.
> Simplify it.
Agreed. The other side is shadow_lru_isolate() which goes also goes
through mapping->i_pages. That's probably how it came to be. But your
patch doesn't make that relationship any harder to understand.
> Signed-off-by: Pedro Falcato <pfalcato@...e.de>
Acked-by: Johannes Weiner <hannes@...xchg.org>
Thanks
Powered by blists - more mailing lists