summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-07-17 13:04:33 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 19:23:06 +0200
commit019ab801cf32381b90cbe0144cc5695aed0e408c (patch)
treecbd8de21b26bc716bd4bb4d70014193e47490310 /drivers
parentknfsd: exportfs: add find_disconnected_root helper (diff)
downloadlinux-019ab801cf32381b90cbe0144cc5695aed0e408c.tar.xz
linux-019ab801cf32381b90cbe0144cc5695aed0e408c.zip
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 <hch@lst.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions