/* Compute the hash for the isofs name corresponding to the dentry.  */
static int isofs_hashi_common(struct dentry *dentry, struct qstr *qstr, int ms)
/* Compute the hash for the isofs name corresponding to the dentry.  */
static int isofs_hashi_common(struct dentry *dentry, struct qstr *qstr, int ms)
{
	const char *name;
	int len;
	char c;
	unsigned long hash;
	len = qstr->len;
	name = qstr->name;
	if (ms) {
		while (len && name[len-1] == '.')
			len--;
	}
	hash = init_name_hash();
	while (len--) {
		c = tolower(*name++);
		hash = partial_name_hash(c, hash);
	}
	qstr->hash = end_name_hash(hash);
	return 0;
}