From nobody Wed Dec 17 05:28:00 2025 Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.67.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59B1385626 for ; Wed, 19 Jun 2024 16:18:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.67.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718813918; cv=none; b=d6Bb5kQiRNX+sze7Jl8SFyLkzT3y5clqT7hh+Lz5LHUD5NpjQYvbtXhUE7BzIVZzlJDZK7MpHwln4gUDnF1vUHiRCH8ZXMj3yVyC1Pux90oHOVbAJU4KLhHUBxyWlQlf7qRWzok+MNDRkxgNhzXPmcHfMmzqFP+ag0QcTS/NN+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718813918; c=relaxed/simple; bh=7epb0F2SQvHplir4DDW9HhlOUi59yLHyvRLMgmqaHRw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rfoisDtfA6WsM1GsjKt52UwBDeKR24cWdSYxi/mDSa0qiYju8MNN23VdwMadq7ulvxtnROA8gF9nq3rWdDc72pQxbV/lcQe6oPBrfNUhUoILdS7BgJVR6qJbO0Q5g82GNFmDvS7ZI843iFldiX6UMLMo+mrFDHsMF/ya4bpoDUA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chenxiaosong.com; spf=none smtp.mailfrom=chenxiaosong.com; arc=none smtp.client-ip=114.132.67.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chenxiaosong.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=chenxiaosong.com X-QQ-mid: bizesmtpsz1t1718813892t22py56 X-QQ-Originating-IP: MsyLS7BAVXz9z+Z65hrDoBs2f435XlV/1gS6fjQc/q4= Received: from localhost.localdomain ( [116.128.244.171]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 20 Jun 2024 00:18:10 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 2856800835470210935 From: chenxiaosong@chenxiaosong.com To: linkinjeon@kernel.org, sfrench@samba.org, senozhatsky@chromium.org, tom@talpey.com, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, pc@manguebit.com, ronniesahlberg@gmail.com, sprasad@microsoft.com, bharathsm@microsoft.com, samba-technical@lists.samba.org Cc: chenxiaosong@kylinos.cn, liuzhengyuan@kylinos.cn, huhai@kylinos.cn, liuyun01@kylinos.cn, ChenXiaoSong Subject: [PATCH] ksmbd: remove duplicate SMB2 Oplock levels definitions Date: Wed, 19 Jun 2024 16:17:53 +0000 Message-Id: <20240619161753.385508-1-chenxiaosong@chenxiaosong.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:chenxiaosong.com:qybglogicsvrsz:qybglogicsvrsz4a-0 Content-Type: text/plain; charset="utf-8" From: ChenXiaoSong smb/common already have SMB2 Oplock levels definitions, remove duplicate definitions in server. Signed-off-by: ChenXiaoSong Signed-off-by: ChenXiaoSong --- fs/smb/server/oplock.h | 7 ------- 1 file changed, 7 deletions(-) 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 @@ =20 #define OPLOCK_WAIT_TIME (35 * HZ) =20 -/* 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 --=20 2.34.1