/* len <= VXFS_NAMELEN and de != NULL are guaranteed by caller.  */
static int vxfs_match(int len, const char *const name, struct vxfs_direct *de)
/* len <= VXFS_NAMELEN and de != NULL are guaranteed by caller.  */
static int vxfs_match(int len, const char *const name, struct vxfs_direct *de)
{
	if (len != de->d_namelen)
		return 0;
	if (!de->d_ino)
		return 0;
	return !memcmp(name, de->d_name, len);
}