[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240822034735.GE32681@lst.de>
Date: Thu, 22 Aug 2024 05:47:35 +0200
From: Christoph Hellwig <hch@....de>
To: "Darrick J. Wong" <djwong@...nel.org>
Cc: Christoph Hellwig <hch@....de>,
Chandan Babu R <chandan.babu@...cle.com>,
Matthew Wilcox <willy@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-xfs@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 2/5] xfs: move the tagged perag lookup helpers to
xfs_icache.c
On Wed, Aug 21, 2024 at 09:34:07AM -0700, Darrick J. Wong wrote:
> On Wed, Aug 21, 2024 at 08:38:29AM +0200, Christoph Hellwig wrote:
> > The tagged perag helpers are only used in xfs_icache.c in the kernel code
> > and not at all in xfsprogs. Move them to xfs_icache.c in preparation for
> > switching to an xarray, for which I have no plan to implement the tagged
> > lookup functions for userspace.
>
> I don't particularly like moving these functions to another file, but I
> suppose the icache is the only user of these tags. How hard is it to
> make userspace stubs that assert if anyone ever tries to use it?
It might be easier to just implement them in that case like the underlying
radix tree ones. But given that they are unused I'd feel rather
uncomfortable about it. And more importantly I like to have the
function (only one is left by the end) close to the callers as that makes
reading and understanding the code easier.
Powered by blists - more mailing lists