* share mode that is being marked stale or deleted.
*/
-static void remove_share_mode_lease(struct share_mode_data *d,
+static void remove_share_mode_lease(struct share_mode_lock *lck,
struct share_mode_entry *e)
{
uint16_t op_type;
op_type = e->op_type;
e->op_type = NO_OPLOCK;
- d->modified = true;
+ lck->data->modified = true;
if (op_type != LEASE_OPLOCK) {
return;
}
- remove_lease_if_stale(d, &e->client_guid, &e->lease_key);
+ remove_lease_if_stale(lck->data, &e->client_guid, &e->lease_key);
}
bool share_entry_stale_pid(struct share_mode_entry *e)
if (e == NULL) {
return False;
}
- remove_share_mode_lease(lck->data, e);
+ remove_share_mode_lease(lck, e);
*e = lck->data->share_modes[lck->data->num_share_modes-1];
lck->data->num_share_modes -= 1;
return True;
bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
{
- struct share_mode_data *d = lck->data;
struct share_mode_entry *e;
e = find_share_mode_entry(
return False;
}
- remove_share_mode_lease(d, e);
+ remove_share_mode_lease(lck, e);
return true;
}