From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753507Ab2HZPLA (ORCPT ); Sun, 26 Aug 2012 11:11:00 -0400 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:60472 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817Ab2HZPK7 (ORCPT ); Sun, 26 Aug 2012 11:10:59 -0400 Date: Sun, 26 Aug 2012 19:10:54 +0400 From: Cyrill Gorcunov To: Al Viro Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Alexey Dobriyan , Andrew Morton , Pavel Emelyanov , James Bottomley , Matthew Helsley , aneesh.kumar@linux.vnet.ibm.com, bfields@fieldses.org Subject: Re: [patch 2/9] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file v2 Message-ID: <20120826151054.GC7428@moon> References: <20120823104323.040550004@openvz.org> <20120823104725.686586462@openvz.org> <20120826024653.GY23464@ZenIV.linux.org.uk> <20120826142820.GA16038@moon> <20120826150520.GZ23464@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120826150520.GZ23464@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 26, 2012 at 04:05:20PM +0100, Al Viro wrote: > > Applied, with a couple of changes: > * there's no need for those games with ihold/iput - opened file pins > its inode down just fine, TYVM. Ah, yeah, thanks! > * struct fd_info is pointless in that form - the last argument > of single_open() will end up in seq_file ->private, so let's just pass > the inode there and use m->private in ->show(). Yes. Thanks! > I'll push that into vfs.git#master (along with the previous patch) in a few hours. > > O_CLOEXEC is taken care of in my tree. FWIW, I'm consolidating descriptor > handling in general into fs/file.c (and I'm seriously tempted to rename > that sucker to something like fs/descriptors.c or fs/fdtable.c); some of > that stuff is already in #master. I'm probably going to move some of the > code from your fs/proc/fd.c there as well... OK, so I'll fetch your tree and rebase the rest of series on top then, to continue fdinfo handling. Sounds good?