struct file_rename_message msg;
};
-static bool rename_lease_fn(struct share_mode_lock *lck,
- struct share_mode_entry *e,
+static bool rename_lease_fn(struct share_mode_entry *e,
void *private_data)
{
struct rename_share_filename_state *state = private_data;
bool share_mode_forall_leases(
struct share_mode_lock *lck,
- bool (*fn)(struct share_mode_lock *lck,
- struct share_mode_entry *e,
+ bool (*fn)(struct share_mode_entry *e,
void *private_data),
void *private_data)
{
continue;
}
- stop = fn(lck, e, private_data);
+ stop = fn(e, private_data);
if (stop) {
TALLOC_FREE(leases);
return true;
uint64_t open_persistent_id);
bool share_mode_forall_leases(
struct share_mode_lock *lck,
- bool (*fn)(struct share_mode_lock *lck,
- struct share_mode_entry *e,
+ bool (*fn)(struct share_mode_entry *e,
void *private_data),
void *private_data);
struct file_id fid;
};
-static bool cleanup_disconnected_lease(struct share_mode_lock *lck,
- struct share_mode_entry *e,
+static bool cleanup_disconnected_lease(struct share_mode_entry *e,
void *private_data)
{
struct cleanup_disconnected_lease_state *state = private_data;
size_t num_broken;
};
-static bool do_break_lease_to_none(struct share_mode_lock *lck,
- struct share_mode_entry *e,
+static bool do_break_lease_to_none(struct share_mode_entry *e,
void *private_data)
{
struct break_to_none_state *state = private_data;