HomeFreeBSD

Revert "zfs readdir: if there were no dirents to copy out, return EINVAL same…

Description

Revert "zfs readdir: if there were no dirents to copy out, return EINVAL same as UFS"

This reverts commit 9a3edc8d5dbcb896179cfa7867f961184e146a09.
Apparently returning EINVAL is more aggressive than UFS does it, and
this causes compatibility issues with apps that actually trigger the
behavior.

PR: 289485, 289678
Sponsored by: The FreeBSD Foundation
MFC after: 3 days