[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200701060239.GA27121@infradead.org>
Date: Wed, 1 Jul 2020 07:02:39 +0100
From: Christoph Hellwig <hch@...radead.org>
To: willy@...radead.org
Cc: linux-kernel@...r.kernel.org
Subject: alternative to xa_for_each?
Hi Matthew,
I'm just reviewing a patch adding an xarray user, and I'm wondering
if we could just replace xa_for_each with a loop on
xa_find_after with a magic index to start from the beginning? That
would always seem like more readable code than the magic looping macro.
And while we're at it: is there an idiomatic way to get the entry with
the highest index?
Powered by blists - more mailing lists