From: Christoph Hellwig Date: Tue, 17 Jul 2007 11:04:33 +0000 (-0700) Subject: knfsd: exportfs: split out reconnecting a dentry from find_exported_dentry X-Git-Tag: v2.6.23-rc1~663 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019ab801cf32381b90cbe0144cc5695aed0e408c;p=pandora-kernel.git knfsd: exportfs: split out reconnecting a dentry from find_exported_dentry There's a clear subfunctionality of reconnecting a given dentry to the main dentry tree in find_exported_dentry, that can be called both for the dentry we're looking for or it's parent directory. This patch splits the subfunctionality out into a separate helper to make the code more readable and document it's intent. As a nice side-optimization we can avoid getting a superfluous dentry reference count in the case we need to reconnect a directory on it's own. Signed-off-by: Christoph Hellwig Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed