summaryrefslogtreecommitdiff
path: root/fs/exfat
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-07-26 10:39:26 +0200
committerNamjae Jeon <linkinjeon@kernel.org>2022-08-01 10:14:06 +0900
commit1b1a9195ae962fefd8d0785e0af434de1a3447fd (patch)
tree84a0a0205eab84a45720c4cf6e53371bef4365f4 /fs/exfat
parent86da53e8ff5dcfbbbd345edc0caef7d21ce567ae (diff)
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: Petr Vorel <pvorel@suse.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat')
-rw-r--r--fs/exfat/exfat_fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h
index 708d972700c0..b1e2fea74e47 100644
--- a/fs/exfat/exfat_fs.h
+++ b/fs/exfat/exfat_fs.h
@@ -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