/* Qsort comparison routine for the block leaf entries.  */
static int xfs_dir2_block_sort(const void *a, const void *b)
/* Qsort comparison routine for the block leaf entries.  */
static int xfs_dir2_block_sort(const void *a, const void *b)
{
	const xfs_dir2_leaf_entry_t	*la;
	const xfs_dir2_leaf_entry_t	*lb;
	la = a;
	lb = b;
	return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 :
		(be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0);
}