knfsd: exportfs: move acceptable check into find_acceptable_alias
authorChristoph Hellwig <hch@infradead.org>
Tue, 17 Jul 2007 11:04:32 +0000 (04:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:06 +0000 (10:23 -0700)
commitfb66a1989c8abc3015aa334f617658b277e5fe98
treee4216b8aa64bfb0376fa91f890fb03ae19803ac4
parentd7dd618a5901ce0b44ef518208b35f728775db74
knfsd: exportfs: move acceptable check into find_acceptable_alias

All callers of find_acceptable_alias check if the current dentry is acceptable
before looking for other acceptable aliases using find_acceptable_alias.  Move
the check into find_acceptable_alias to make the code a little more dense and
add a comment to find_acceptable_alias that documents its intent.

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