configfs: return -ENAMETOOLONG earlier in configfs_lookup
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Aug 2021 05:42:44 +0000 (07:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 25 Aug 2021 05:42:44 +0000 (07:42 +0200)
commit417b962ddeca2b70eb72d28c87541bdad4e234f8
tree1b49f30213eb43714fd43c25df983f86b32695e7
parent769f52676756b8c5feb302d2d95af59577fc69ec
configfs: return -ENAMETOOLONG earlier in configfs_lookup

Just like most other file systems: get the simple checks out of the
way first.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/configfs/dir.c