/* len <= UFS_MAXNAMLEN and de != NULL are guaranteed by caller.  */
static int ufs_match(struct super_block *sb, int len, const char *const name, struct ufs_dir_entry *de)
/* len <= UFS_MAXNAMLEN and de != NULL are guaranteed by caller.  */
static int ufs_match(struct super_block *sb, int len, const char *const name, struct ufs_dir_entry *de)
{
	if (len != ufs_get_de_namlen(sb, de))
		return 0;
	if (!de->d_ino)
		return 0;
	return !memcmp(name, de->d_name, len);
}