Re: [PATCH v8 10/13] exfat: add nls operations

From: Markus Elfring
Date: Tue Dec 31 2019 - 09:24:16 EST


â
> +++ b/fs/exfat/nls.c
â
> +int exfat_nls_cmp_uniname(struct super_block *sb, unsigned short *a,
> + unsigned short *b)
> +{
> + int i;
> +
> + for (i = 0; i < MAX_NAME_LENGTH; i++, a++, b++) {
> + if (exfat_nls_upper(sb, *a) != exfat_nls_upper(sb, *b))

Can it matter to compare run time characteristics with the following
code variant?

+ for (i = 0; i < MAX_NAME_LENGTH; i++) {
+ if (exfat_nls_upper(sb, a[i]) != exfat_nls_upper(sb, b[i]))

Regards,
Markus