[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200706221159.13948.agruen@suse.de>
Date: Fri, 22 Jun 2007 11:59:13 +0200
From: Andreas Gruenbacher <agruen@...e.de>
To: Pavel Machek <pavel@....cz>
Cc: david@...g.hm, Greg KH <greg@...ah.com>,
Crispin Cowan <crispin@...ell.com>,
Stephen Smalley <sds@...ho.nsa.gov>, jjohansen@...e.de,
linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
On Saturday 16 June 2007 02:20, Pavel Machek wrote:
> Ok, so mv gets slower for big trees... and open() gets faster for deep
> trees. Previously, open in current directory was one atomic read of
> directory entry, now it has to read directory, and its parent, and its
> parent parent, and its...
>
> (Or am I wrong and getting full path does not need to bring anything
> in, not even in cache-cold case?)
You are wrong, indeed. The dentries in the dcache are connected to the dcache
through their parent dentry pointers, which means that the parent dentries
are always in memory, too. No I/O is involved for walking up dentry trees.
(Caveat: nfsd does allow disconnected dentries. It does not make sense to try
confining an in-kernel daemon though, an no user process can ever access a
dentry before it gets connected (lookup does that), so this difference is
irrelevant here.)
-
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