From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:35668 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936136AbeFORPY (ORCPT ); Fri, 15 Jun 2018 13:15:24 -0400 Date: Fri, 15 Jun 2018 20:15:21 +0300 From: Alexey Dobriyan To: David Howells Cc: 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 Message-ID: <20180615171521.GA4417@avx2> References: <20180614200956.GB7137@avx2> <15003.1529008242@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <15003.1529008242@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jun 14, 2018 at 09:30:42PM +0100, David Howells wrote: > 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. Those must be /proc/*/map_files symlinks. If that's the case, they don't have PDEs allocated.