Re: [RFC PATCH v3 00/59] struct filename work
From: Linus Torvalds
Date: Tue Dec 16 2025 - 00:12:17 EST
So I like the whole series, but..
On Tue, 16 Dec 2025 at 15:56, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> struct filename ->refcnt doesn't need to be atomic
Does ->refcnt need to exist _at_all_ if audit isn't enabled?
Are there any other users of it? Maybe I missed some?
Because I'm wondering if we could just encapsulate the thing entirely
in some #ifdef CONFIG_AUDIT check.
Now, I think absolutely everybody does enable audit, so it's not
because I'd try to save one word of memory and a few tests, it's more
of a "could we make it very explicit that all that code is purely
about the audit case"?
Linus