ksmbd: remove SMB1 oplock level macros
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 30 Jun 2021 00:37:09 +0000 (09:37 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Wed, 30 Jun 2021 05:43:51 +0000 (14:43 +0900)
ksmbd does not support SMB1. This patch remove SMB1 oplock level macros.

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/ksmbd/oplock.c
fs/ksmbd/oplock.h

index 43c8b7c..a9f171c 100644 (file)
@@ -39,7 +39,7 @@ static struct oplock_info *alloc_opinfo(struct ksmbd_work *work,
 
        opinfo->sess = sess;
        opinfo->conn = sess->conn;
-       opinfo->level = OPLOCK_NONE;
+       opinfo->level = SMB2_OPLOCK_LEVEL_NONE;
        opinfo->op_state = OPLOCK_STATE_NONE;
        opinfo->pending_break = 0;
        opinfo->fid = id;
index 9fb7ea7..119b804 100644 (file)
 
 #define OPLOCK_WAIT_TIME       (35 * HZ)
 
-/* SMB Oplock levels */
-#define OPLOCK_NONE      0
-#define OPLOCK_EXCLUSIVE 1
-#define OPLOCK_BATCH     2
-#define OPLOCK_READ      3  /* level 2 oplock */
-
 /* SMB2 Oplock levels */
 #define SMB2_OPLOCK_LEVEL_NONE          0x00
 #define SMB2_OPLOCK_LEVEL_II            0x01