Re: [RFC][PATCH 10/13] get rid of audit_reusename()
Linus Torvalds <[email protected]>
| Newsgroups | org.kernel.vger.audit,org.kernel.vger.io-uring,org.kernel.vger.linux-fsdevel |
|---|---|
| Message-ID | <CAHk-=whxKKnh=rtO9sq0uUL76YGLB3YTb98DVBub_84_nO6txA@mail.gmail.com> |
On Sun, 9 Nov 2025 at 14:18, Mateusz Guzik <[email protected]> wrote: > > You would need 256 bytes to cover almost all of this. Why would you care to cover all of that? Your very numbers show that 128 bytes covers 97+% of all cases (and 160 bytes is at 99.8%) The other cases need to be *correct*, of course, but not necessarily optimized for. If we can do 97% of all filenames with a simple on-stack allocation, that would be a huge win. (In fact, 64 bytes covers 90% of the cases according to your numbers). Linus