[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15003.1529008242@warthog.procyon.org.uk>
Date: Thu, 14 Jun 2018 21:30:42 +0100
From: David Howells <dhowells@...hat.com>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: dhowells@...hat.com, viro@...iv.linux.org.uk,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] proc: Make inline name size calculation automatic
Alexey Dobriyan <adobriyan@...il.com> wrote:
> > Require a minimum inline name size of 33+1 to allow for names that look
> > like two hex numbers with a dash between.
>
> Why 34? /proc will fallback to separate allocation for name anyway.
See above comment. I ran find on /proc and there were a bunch of files whose
names were "<hex>-<hex>". Allow for 16-char hex addresses and add a NUL char
to that and you get 34.
David
Powered by blists - more mailing lists