Re: [PATCH v4] fs: hide names_cachep behind runtime access machinery

From: Linus Torvalds

Date: Thu Oct 30 2025 - 12:16:08 EST


On Thu, 30 Oct 2025 at 03:52, Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> Should someone(tm) make this work for modules I'm not going to protest.

Btw, that's a good point. When I did this all originally, I explicitly
did *not* want to make it work for modules, but I do note that it can
be used for modules very easily by mistake.

> Vast majority of actual usage is coming from core kernel, which *is*
> getting the new treatment and I don't think the ifdef is particularly
> nasty.

I suspect we should make that #ifdef be an integral part of the
runtime const headers. Because right now it's really much too easy to
get it wrong, and I wonder if we already do.

Linus