Skip to contentSkip to conversation

ksmbd: remove duplicate SMB2 Oplock levels definitions

PATCH Applied [email protected] 2 participants 3 messages Jun 19, 2024 – Jun 20, 2024

Subsystems (2)
lore
Share & tools
lore

[email protected]

author reviewer
#0 lore raw

PATCH 1/1 ksmbd: remove duplicate SMB2 Oplock levels definitions

From: ChenXiaoSong <[email protected]>

smb/common already have SMB2 Oplock levels definitions, remove duplicate definitions in server.

---
 fs/smb/server/oplock.h | 7 -------
 1 file changed, 7 deletions(-)
fs/smb/server/oplock.h +0 -7
index e9da63f25b20..72bc88a63a40 100644
@@ -11,13 +11,6 @@
 
 #define OPLOCK_WAIT_TIME	(35 * HZ)
 
-/* SMB2 Oplock levels */
-#define SMB2_OPLOCK_LEVEL_NONE          0x00
-#define SMB2_OPLOCK_LEVEL_II            0x01
-#define SMB2_OPLOCK_LEVEL_EXCLUSIVE     0x08
-#define SMB2_OPLOCK_LEVEL_BATCH         0x09
-#define SMB2_OPLOCK_LEVEL_LEASE         0xFF
-
 /* Oplock states */
 #define OPLOCK_STATE_NONE	0x00
 #define OPLOCK_ACK_WAIT		0x01
Signature · 1 line
2.34.1
author reviewer
#2 lore raw

Hi Namjae and Steve:

By the way, is there any update on the KSMBD Feature Status [1]?

Thanks,
ChenXiaoSong.

[1] https://github.com/torvalds/linux/blob/master/Documentation/filesystems/smb/ksmbd.rst#ksmbd-feature-status

Quoted 12 lines · Namjae Jeon

2024년 6월 20일 (목) 오전 1:18, <[email protected]>님이 작성:

Quoted 8 lines

From: ChenXiaoSong <[email protected]>

smb/common already have SMB2 Oplock levels definitions, remove duplicate definitions in server.

Applied it to #ksmbd-for-next-next.
Thanks for your patch!