]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Slightly simplify delay_for_oplock()
authorVolker Lendecke <vl@samba.org>
Fri, 9 Aug 2019 11:38:40 +0000 (13:38 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 19 Aug 2019 23:14:39 +0000 (23:14 +0000)
This is never called for INTERNAL_OPENs anymore, see
handle_share_mode_lease()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index cdc69e1af1afd129faece025a2946bc5f39a01ab..f5f91f9e11b98c1725fd8c52c8515d72af88b99b 100644 (file)
@@ -1871,8 +1871,7 @@ static bool delay_for_oplock(files_struct *fsp,
        const uint32_t delay_mask = have_sharing_violation ?
                SMB2_LEASE_HANDLE : SMB2_LEASE_WRITE;
 
-       if ((oplock_request & INTERNAL_OPEN_ONLY) ||
-           is_stat_open(fsp->access_mask)) {
+       if (is_stat_open(fsp->access_mask)) {
                return false;
        }