linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] proc: Make inline name size calculation automatic
@ 2018-06-14 20:09 Alexey Dobriyan
  2018-06-14 20:30 ` David Howells
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Dobriyan @ 2018-06-14 20:09 UTC (permalink / raw)
  To: dhowells; +Cc: viro, linux-fsdevel, linux-kernel

> Require a minimum inline name size of 33+1 to allow for names that look
> like two hex numbers with a dash between.

Hi, David.

Why 34? /proc will fallback to separate allocation for name anyway.

I sent nearly identical patch earlier.
https://marc.info/?l=linux-kernel&m=152667374404900&w=4

If you compare, the differences are:

* no BUILD_BUG_ON,
* 64 bytes is too litle even on 32-bit,
* 512 bytes is probably too much even on 64-bit.

> -	.name		= proc_root.inline_name,
> -	.inline_name	= "/proc",
> +	.name		= "/proc",

This will "uninline" 5 bytes wasting space.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-17 16:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14 20:09 [PATCH] proc: Make inline name size calculation automatic Alexey Dobriyan
2018-06-14 20:30 ` David Howells
2018-06-15 17:15   ` Alexey Dobriyan
2018-06-17 21:57   ` [PATCH] proc: fixup PDE allocation bloat Alexey Dobriyan
2018-07-20  0:06     ` Shakeel Butt
2018-08-17 13:28       ` Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).