smbd: Remove FAKE_LEVEL_II_OPLOCK
[mat/samba.git] / source3 / locking / locking.c
index b9db27cb8600a323179ffc2e6e35aaae077ffa4a..7ac04a45e3fcfc7bf89da49aac43653298d9ed56 100644 (file)
@@ -823,19 +823,7 @@ bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
                return False;
        }
 
-       if (EXCLUSIVE_OPLOCK_TYPE(e->op_type)) {
-               /*
-                * Going from exclusive or batch,
-                * we always go through FAKE_LEVEL_II
-                * first.
-                */
-               if (!EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
-                       smb_panic("remove_share_oplock: logic error");
-               }
-               e->op_type = FAKE_LEVEL_II_OPLOCK;
-       } else {
-               e->op_type = NO_OPLOCK;
-       }
+       e->op_type = NO_OPLOCK;
        lck->data->modified = True;
        return True;
 }