kernels/linux-2.4.0/fs/affs/namei.c
/*
 * Note: the dentry argument is the parent dentry.
 */
the dentry argument is the parent dentry.
the dentry argument is the parent dentry .
static int
affs_hash_dentry(struct dentry *dentry, struct qstr *qstr)
{
	unsigned int (*toupper)(unsigned int) = affs_toupper;
	unsigned long	 hash;
	int		 i;
	if ((i = affs_check_name(qstr->name,qstr->len)))
		return i;
	if (AFFS_I2FSTYPE(dentry->d_inode))
		toupper = affs_intl_toupper;
	hash = init_name_hash();
	for (i = 0; i < qstr->len && i < 30; i++)
		hash = partial_name_hash(toupper(qstr->name[i]), hash);
	qstr->hash = end_name_hash(hash);
	return 0;
}
static int affs_hash_dentry ( struct dentry * dentry , struct qstr * qstr ) { unsigned int ( * toupper ) ( unsigned int ) = affs_toupper ; unsigned long hash ; int i ; if ( ( i = affs_check_name ( qstr -> name , qstr -> len ) ) ) return i ; if ( AFFS_I2FSTYPE ( dentry -> d_inode ) ) toupper = affs_intl_toupper ; hash = init_name_hash ( ) ; for ( i = 0 ; i < qstr -> len && i < 30 ; i ++ ) hash = partial_name_hash ( toupper ( qstr -> name [ i ] ) , hash ) ; qstr -> hash = end_name_hash ( hash ) ; return 0 ; }
Note: the dentry argument is the parent dentry.
Note : the dentry argument is the parent dentry .
/* Check whether to use the international 'toupper' routine */