Re: [PATCH 2/2] fs: cache the string generated by reading /proc/filesystems

From: Mateusz Guzik
Date: Sat Apr 05 2025 - 00:55:54 EST


On Fri, Apr 4, 2025 at 10:41 AM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Sat, Mar 29, 2025 at 09:53:16PM +0100, Andreas Schwab wrote:
> > On Mär 29 2025, Mateusz Guzik wrote:
> >
> > > It is being read surprisingly often (e.g., by mkdir, ls and even sed!).
> >
> > It is part of libselinux (selinuxfs_exits), called by its library
> > initializer.
>
> Can we please fix libselinux instead of working around this really
> broken behavior in the kernel?
>

That's a fair point, I'm going to ask them about it. If they fix it
then I'll probably self-NAK the patch.

--
Mateusz Guzik <mjguzik gmail.com>