From: Al Viro Date: Tue, 7 Apr 2009 15:49:53 +0000 (-0400) Subject: Cache root in nameidata X-Git-Tag: v2.6.31-rc1~375^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a737871108de9ba8930f7650d549f1383767f8b;p=pandora-kernel.git Cache root in nameidata New field: nd->root. When pathname resolution wants to know the root, check if nd->root.mnt is non-NULL; use nd->root if it is, otherwise copy current->fs->root there. After path_walk() is finished, we check if we'd got a cached value in nd->root and drop it. Before calling path_walk() we should either set nd->root.mnt to NULL *or* copy (and pin down) some path to nd->root. In the latter case we won't be looking at current->fs->root at all. Signed-off-by: Al Viro --- Reading git-diff-tree failed