knfsd: exportfs: untangle ISDIR logic in find_exported_dentry
authorChristoph Hellwig <hch@infradead.org>
Tue, 17 Jul 2007 11:04:31 +0000 (04:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:06 +0000 (10:23 -0700)
commitd7dd618a5901ce0b44ef518208b35f728775db74
tree689e0e53091072cd5bf387f047c7fb55793f402d
parent10f11c341da8c0ec6b8b024e892108a6537ba8c4
knfsd: exportfs: untangle ISDIR logic in find_exported_dentry

Rework some logic in find_exported_dentry so that we only have a single
S_ISDIR check and logic that makes clear to the reader what we're really doing
here.

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>
fs/exportfs/expfs.c