/* Compute the hash for the isofs name corresponding to the dentry.  */
static int isofs_hash_common(struct dentry *dentry, struct qstr *qstr, int ms)
/* Compute the hash for the isofs name corresponding to the dentry.  */
static int isofs_hash_common(struct dentry *dentry, struct qstr *qstr, int ms)
{
	const char *name;
	int len;
	len = qstr->len;
	name = qstr->name;
	if (ms) {
		while (len && name[len-1] == '.')
			len--;
	}
	qstr->hash = full_name_hash(name, len);
	return 0;
}