We lookup the lock array from the state stored in the passed-in req
and all the locks in an array are always the same flavour, so this
isn't needed.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
bool smbd_smb1_brl_finish_by_lock(
struct files_struct *fsp,
bool large_offset,
- enum brl_flavour lock_flav,
struct smbd_lock_element lock,
NTSTATUS finish_status)
{
DBG_DEBUG("i=%zu, req=%p\n", i, req);
- if ((state->large_offset != large_offset) ||
- (state->locks[0].lock_flav != lock_flav)) {
+ if (state->large_offset != large_offset) {
continue;
}
bool smbd_smb1_brl_finish_by_lock(
struct files_struct *fsp,
bool large_offset,
- enum brl_flavour lock_flav,
struct smbd_lock_element lock,
NTSTATUS finish_status);
bool smbd_smb1_brl_finish_by_mid(
ok = smbd_smb1_brl_finish_by_lock(
fsp,
large_file_format,
- WINDOWS_LOCK,
ulocks[0],
NT_STATUS_OK);
if (ok) {
ok = smbd_smb1_brl_finish_by_lock(
fsp,
large_file_format,
- WINDOWS_LOCK,
locks[0], /* Windows only cancels the first lock */
NT_STATUS_FILE_LOCK_CONFLICT);