ksmbd: change stream type macro to enumeration
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 22 Jun 2021 04:26:24 +0000 (13:26 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 28 Jun 2021 07:28:12 +0000 (16:28 +0900)
Change stream type macro to enumeration and move it to vfs.h.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/glob.h
fs/cifsd/vfs.h

index 8119cb7ddbed5d28b25abe345aa4d3f5403b77fc..49a5a3afa118162e70c49fe4e3048483d0c97d23 100644 (file)
@@ -16,9 +16,6 @@
 
 extern int ksmbd_debug_types;
 
-#define DATA_STREAM    1
-#define DIR_STREAM     2
-
 #define KSMBD_DEBUG_SMB                BIT(0)
 #define KSMBD_DEBUG_AUTH       BIT(1)
 #define KSMBD_DEBUG_VFS                BIT(2)
index 29352c22702825c9c09f29b40209bcdcf053e646..a9c14c5dee8d3aeece7bf3893ac556810b94a28d 100644 (file)
@@ -101,6 +101,14 @@ struct xattr_ntacl {
 #define XATTR_NAME_SD_LEN      \
                (sizeof(XATTR_SECURITY_PREFIX SD_PREFIX) - 1)
 
+/*
+ * Enumeration for stream type.
+ */
+enum {
+       DATA_STREAM     = 1,    /* type $DATA */
+       DIR_STREAM              /* type $INDEX_ALLOCATION */
+};
+
 /* CreateOptions */
 /* Flag is set, it must not be a file , valid for directory only */
 #define FILE_DIRECTORY_FILE_LE                 cpu_to_le32(0x00000001)