/* NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure. */
static int ext3_match(int len, const char *const name, struct ext3_dir_entry_2 *de)
/* NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure. */
static int ext3_match(int len, const char *const name, struct ext3_dir_entry_2 *de)
{
	if (len != de->name_len)
		return 0;
	if (!de->inode)
		return 0;
	return !memcmp(name, de->name, len);
}