Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44010 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754749AbeFNUao (ORCPT ); Thu, 14 Jun 2018 16:30:44 -0400 From: David Howells In-Reply-To: <20180614200956.GB7137@avx2> References: <20180614200956.GB7137@avx2> To: Alexey Dobriyan Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] proc: Make inline name size calculation automatic MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15002.1529008242.1@warthog.procyon.org.uk> Date: Thu, 14 Jun 2018 21:30:42 +0100 Message-ID: <15003.1529008242@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Alexey Dobriyan 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 "-". Allow for 16-char hex addresses and add a NUL char to that and you get 34. David