diff mbox series

ksmbd: remove duplicate SMB2 Oplock levels definitions

Message ID 20240619161753.385508-1-chenxiaosong@chenxiaosong.com (mailing list archive)
State New, archived
Headers show
Series ksmbd: remove duplicate SMB2 Oplock levels definitions | expand

Commit Message

ChenXiaoSong June 19, 2024, 4:17 p.m. UTC
From: ChenXiaoSong <chenxiaosong@kylinos.cn>

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

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
---
 fs/smb/server/oplock.h | 7 -------
 1 file changed, 7 deletions(-)

Comments

Namjae Jeon June 19, 2024, 11:32 p.m. UTC | #1
2024년 6월 20일 (목) 오전 1:18, <chenxiaosong@chenxiaosong.com>님이 작성:
>
> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
>
> smb/common already have SMB2 Oplock levels definitions, remove duplicate
> definitions in server.
>
> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
> Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Applied it to #ksmbd-for-next-next.
Thanks for your patch!
ChenXiaoSong June 20, 2024, 1:41 a.m. UTC | #2
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

在 2024/6/20 07:32, Namjae Jeon 写道:
> 2024년 6월 20일 (목) 오전 1:18, <chenxiaosong@chenxiaosong.com>님이 작성:
>>
>> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
>>
>> smb/common already have SMB2 Oplock levels definitions, remove duplicate
>> definitions in server.
>>
>> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
>> Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
> Applied it to #ksmbd-for-next-next.
> Thanks for your patch!
>
diff mbox series

Patch

diff --git a/fs/smb/server/oplock.h b/fs/smb/server/oplock.h
index e9da63f25b20..72bc88a63a40 100644
--- a/fs/smb/server/oplock.h
+++ b/fs/smb/server/oplock.h
@@ -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