/* Note: leave the hash unchanged if the directory is case-sensitive.  */
static int ncp_hash_dentry(struct dentry *, struct qstr *)
/* Note: leave the hash unchanged if the directory is case-sensitive.  */
static int ncp_hash_dentry(struct dentry *, struct qstr *)
{
	struct nls_table *t;
	unsigned long hash;
	int i;
	t = NCP_IO_TABLE(dentry);
	if (!ncp_case_sensitive(dentry->d_inode)) {
		hash = init_name_hash();
		for (i=0; i<this->len ; i++)
			hash = partial_name_hash(ncp_tolower(t, this->name[i]),
									hash);
		this->hash = end_name_hash(hash);
	}
	return 0;
}