From: Al Viro Subject: Re: [PATCH 15/18] fs: introduce a per-cpu last_ino allocator Date: Fri, 8 Oct 2010 11:19:21 +0100 Message-ID: <20101008101921.GD19804@ZenIV.linux.org.uk> References: <1286515292-15882-1-git-send-email-david@fromorbit.com> <1286515292-15882-16-git-send-email-david@fromorbit.com> <87d3rl5c1h.fsf@basil.nowhere.org> <20101008095824.GB19804@ZenIV.linux.org.uk> <20101008100944.GE13352@basil.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dave Chinner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Andi Kleen Return-path: Content-Disposition: inline In-Reply-To: <20101008100944.GE13352@basil.fritz.box> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Oct 08, 2010 at 12:09:44PM +0200, Andi Kleen wrote: > > Can be done if you bother to add ->getattr() for those, but you'll need > > to do some kind of lazy allocation of inumbers for those; fstat() _will_ > > want st_ino. > > Why not just put 0 in st_ino for sockets/pipes/etc. ? Because it's a userland-visible change; right now you can compare i_ino for sockets...