[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZfnCsredzl7hcbI1@casper.infradead.org>
Date: Tue, 19 Mar 2024 16:52:02 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Kairui Song <kasong@...cent.com>
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] lib/xarray: introduce a new helper xas_get_order
On Tue, Mar 19, 2024 at 05:27:32PM +0800, Kairui Song wrote:
> From: Kairui Song <kasong@...cent.com>
>
> It can be used after xas_load to check the order of loaded entries.
> Compared to xa_get_order, it saves an XA_STATE and avoid a rewalk.
>
> Signed-off-by: Kairui Song <kasong@...cent.com>
Brilliant; yes. I was just looking at this the other day and wondering
why I hadn't done this.
Acked-by: Matthew Wilcox (Oracle) <willy@...radead.org>
> +EXPORT_SYMBOL(xas_get_order);
We don't have a module user yet, so I'd hold off on this. It's an
unusual thing to want to do, and we may never have a modular user.
Also, xas functions are EXPORT_SYMBOL_GPL, not EXPORT_SYMBOL.
Powered by blists - more mailing lists