kernels/linux-2.4.0/fs/vfat/namei.c
/*
 * Compute the hash for the vfat name corresponding to the dentry.
 * Note: if the name is invalid, we leave the hash code unchanged so
 * that the existing dentry can be used. The vfat fs routines will
 * return ENOENT or EINVAL as appropriate.
 */
Compute the hash for the vfat name corresponding to the dentry.
Note: if the name is invalid, we leave the hash code unchanged so
that the existing dentry can be used. The vfat fs routines will
return ENOENT or EINVAL as appropriate.
Compute the hash for the vfat name corresponding to the dentry . Note : if the name is invalid we leave the hash code unchanged so that the existing dentry can be used . The vfat fs routines will return ENOENT or EINVAL as appropriate .
static int vfat_hash(struct dentry *dentry, struct qstr *qstr)
{
	const char *name;
	int len;
	len = qstr->len;
	name = qstr->name;
	while (len && name[len-1] == '.')
		len--;
	qstr->hash = full_name_hash(name, len);
	return 0;
}
static int vfat_hash ( struct dentry * dentry , struct qstr * qstr ) { const char * name ; int len ; len = qstr -> len ; name = qstr -> name ; while ( len && name [ len - 1 ] == ' ' ) len -- ; qstr -> hash = full_name_hash ( name , len ) ; return 0 ; }
Compute the hash for the vfat name corresponding to the dentry.
Compute the hash for the vfat name corresponding to the dentry .