/* Returns 0 if @key1 and @key2 are equal. Returns >0 if @key1 is greater. Returns <0 if @key2 is greater..  */
static int befs_compare_strings(const void *key1, int keylen1, const void *key2, int keylen2)
/* Returns 0 if @key1 and @key2 are equal. Returns >0 if @key1 is greater. Returns <0 if @key2 is greater..  */
static int befs_compare_strings(const void *key1, int keylen1, const void *key2, int keylen2)
{
	int len = min_t(int, keylen1, keylen2);
	int result = strncmp(key1, key2, len);
	if (result == 0)
		result = keylen1 - keylen2;
	return result;
}