zfsonlinux/zfs — pull request #1287 by behlendorf (2013-02-11 21:00:56+00:00)
Title: Add explicit MAXNAMELEN check

It turns out that the Linux VFS doesn't strictly handle all cases
where a component path name exceeds MAXNAMELEN. It does however
appear to correctly handle MAXPATHLEN for us.

The right way to handle this appears to be to add an explicit
check to the zpl_lookup() function. Several in-tree filesystems
handle this case the same way.

Signed-off-by: Brian Behlendorf
Issue #1279