return (num_props != 0);
}
-NTSTATUS remove_lease_if_stale(const struct share_mode_data *d,
+NTSTATUS remove_lease_if_stale(struct share_mode_lock *lck,
const struct GUID *client_guid,
const struct smb2_lease_key *lease_key)
{
+ struct share_mode_data *d = lck->data;
uint32_t i;
NTSTATUS status;
return;
}
- remove_lease_if_stale(lck->data, &e->client_guid, &e->lease_key);
+ remove_lease_if_stale(lck, &e->client_guid, &e->lease_key);
}
bool share_entry_stale_pid(struct share_mode_entry *e)
struct server_id new_pid,
uint64_t new_mid,
uint64_t new_share_file_id);
-NTSTATUS remove_lease_if_stale(const struct share_mode_data *d,
+NTSTATUS remove_lease_if_stale(struct share_mode_lock *lck,
const struct GUID *client_guid,
const struct smb2_lease_key *lease_key);
void remove_stale_share_mode_entries(struct share_mode_data *d);
if (!ok) {
if (fsp->oplock_type == LEASE_OPLOCK) {
status = remove_lease_if_stale(
- lck->data,
+ lck,
fsp_client_guid(fsp),
&fsp->lease->lease.lease_key);
if (!NT_STATUS_IS_OK(status)) {