Commit 1b1a9195 authored by Takashi Iwai's avatar Takashi Iwai Committed by Namjae Jeon
Browse files

exfat: Define NLS_NAME_* as bit flags explicitly



NLS_NAME_* are bit flags although they are currently defined as enum;
it's casually working so far (from 0 to 2), but it's error-prone and
may bring a problem when we want to add more flag.

This patch changes the definitions of NLS_NAME_* explicitly being bit
flags.

Reviewed-by: default avatarPetr Vorel <pvorel@suse.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 86da53e8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ enum exfat_error_mode {
 * exfat nls lossy flag
 */
enum {
	NLS_NAME_NO_LOSSY,	/* no lossy */
	NLS_NAME_LOSSY,		/* just detected incorrect filename(s) */
	NLS_NAME_OVERLEN,	/* the length is over than its limit */
	NLS_NAME_NO_LOSSY =	0,	/* no lossy */
	NLS_NAME_LOSSY =	1 << 0,	/* just detected incorrect filename(s) */
	NLS_NAME_OVERLEN =	1 << 1,	/* the length is over than its limit */
};

#define EXFAT_HASH_BITS		8