[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110826123943.GL3903@sun>
Date: Fri, 26 Aug 2011 16:39:43 +0400
From: Cyrill Gorcunov <gorcunov@...il.com>
To: "Kirill A. Shutemov" <kirill@...temov.name>
Cc: Tejun Heo <tj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Pavel Emelyanov <xemul@...allels.com>,
linux-kernel@...r.kernel.org,
James Bottomley <jbottomley@...allels.com>,
containers@...ts.osdl.org, Andi Kleen <andi@...stfloor.org>,
Nathan Lynch <ntl@...ox.com>,
LINUXFS-ML <linux-fsdevel@...r.kernel.org>,
Zan Lynx <zlynx@....org>, Daniel Lezcano <dlezcano@...ibm.com>,
Vasiliy Kulikov <segoon@...nwall.com>
Subject: Re: [RFC] fs, proc: Introduce the /proc/<pid>/map_files/ directory v2
On Fri, Aug 26, 2011 at 03:28:51PM +0300, Kirill A. Shutemov wrote:
...
> >
> > -static int proc_cwd_link(struct inode *inode, struct path *path)
> > +static int proc_cwd_link(struct dentry *dentry, struct inode *inode, struct path *path)
>
> Put proc_get_link() change in separate patch?
>
Will do, but let leave it to a final pass, ie when all get agreed on idea and
details, ok? Since I'll be re-sending the final version seraparely anyway.
...
> > + down_read(&mm->mmap_sem);
> > +
> > + nr_files = 0;
> > + for (vma = mm->mmap; vma; vma = vma->vm_next) {
> > + if (vma->vm_file)
> > + nr_files++;
> > + }
> > + if (!nr_files)
> > + goto out;
>
> up_read(&mm->mmap_sem); ?
>
> > +
> > + info = kmalloc(nr_files * sizeof(*info), GFP_KERNEL);
> > + if (!info) {
> > + ret = -ENOMEM;
> > + goto out;
>
> Ditto.
>
Yeah, thanks Kirill!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists