|
Message-ID: <20110905192009.GJ761@sun> Date: Mon, 5 Sep 2011 23:20:09 +0400 From: Cyrill Gorcunov <gorcunov@...il.com> To: Vasiliy Kulikov <segoon@...nwall.com> Cc: Andrew Morton <akpm@...ux-foundation.org>, "Kirill A. Shutemov" <kirill@...temov.name>, containers@...ts.osdl.org, linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org, Nathan Lynch <ntl@...ox.com>, kernel-hardening@...ts.openwall.com, Oren Laadan <orenl@...columbia.edu>, Daniel Lezcano <dlezcano@...ibm.com>, Glauber Costa <glommer@...allels.com>, James Bottomley <jbottomley@...allels.com>, Tejun Heo <tj@...nel.org>, Alexey Dobriyan <adobriyan@...il.com>, Al Viro <viro@...IV.linux.org.uk>, Pavel Emelyanov <xemul@...allels.com> Subject: Re: [patch 2/2] fs, proc: Introduce the /proc/<pid>/map_files/ directory v6 On Mon, Sep 05, 2011 at 10:53:58PM +0400, Vasiliy Kulikov wrote: ... > > +static int pid_no_revalidate(struct dentry *dentry, struct nameidata *nd) > +{ > + if (nd && nd->flags & LOOKUP_RCU) > + return -ECHILD; > + > + d_drop(dentry); > + return 0; > +} > + Thanks Vasiliy! So every lookup will cause dcache to drop previous cached entry and alloc and hash new one instead, pretty dramatic, espec in case of huge number of files mapped ;) Still since it's not time critical operation (at least for now) I tend to agree. Cyrill
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.