Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756170Ab2HNOV5 (ORCPT ); Tue, 14 Aug 2012 10:21:57 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:9984 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497Ab2HNOVz (ORCPT ); Tue, 14 Aug 2012 10:21:55 -0400 Message-ID: <502A5EFC.7030504@parallels.com> Date: Tue, 14 Aug 2012 18:21:48 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: Cyrill Gorcunov , Al Viro , Andrew Morton CC: "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , James Bottomley , Matthew Helsley Subject: Re: [patch 2/8] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file References: <20120814140342.354405844@openvz.org> <20120814140619.952738624@openvz.org> In-Reply-To: <20120814140619.952738624@openvz.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1346 Lines: 28 On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: > This patch converts /proc/pid/fdinfo/ handling routines to seq-file which > is needed to extend seq operations and plug in auxiliary fdinfo provides > from subsystems like eventfd/eventpoll/fsnotify. > > Note the proc_fd_link no longer call for proc_fd_info, simply because > proc_fd_info is converted to seq_fdinfo_open (which is seq-file open() > prototype), moreover in further patches I need to provide two seq_fdinfo_open > variants -- one with CONFIG_CHECKPOINT_RESTORE and one without this > symbol. All in one -- this will look more messy then. > > Also, to eliminate code duplication (and Pavel's concerns) the fdinfo_open_helper > function introduced which is used in both seq_fdinfo_open and proc_fd_link. > > Signed-off-by: Cyrill Gorcunov > CC: Al Viro > CC: Alexey Dobriyan > CC: Andrew Morton > CC: Pavel Emelyanov > CC: James Bottomley Acked-by: Pavel Emelyanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/