From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [RFC PATCH 1/5] proc: intoduce proc_inode->pid_entry and is_tgid_pid_entry() Date: Sat, 9 Aug 2014 00:05:53 +0400 Message-ID: <20140808200553.GB20553@moon> References: <20140808185732.GA760@redhat.com> <20140808185747.GA774@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Viro , Alexey Dobriyan , Andrew Morton , David Howells , "David S. Miller" , "Eric W. Biederman" , "Kirill A. Shutemov" , Peter Zijlstra , Sasha Levin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Oleg Nesterov Return-path: Received: from mail-lb0-f178.google.com ([209.85.217.178]:40939 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbaHHUF5 (ORCPT ); Fri, 8 Aug 2014 16:05:57 -0400 Content-Disposition: inline In-Reply-To: <20140808185747.GA774@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Aug 08, 2014 at 08:57:47PM +0200, Oleg Nesterov wrote: ... > +++ b/fs/proc/inode.c > @@ -73,6 +73,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb) > ei->pde = NULL; > ei->sysctl = NULL; > ei->sysctl_entry = NULL; > + ei->pid_entry = NULL; > ei->ns.ns = NULL; > ei->ns.ns_ops = NULL; > inode = &ei->vfs_inode; Hi Oleg, sorry for not responding to previous emails, will try to review this things tomorrow (from a glance looks quite good!). Btw, this moment strike my eyes -- why don't we use kmem_cache_zalloc here but do assign nils again and again, maybe worth to address as well?