1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

smbd: Remove "id" from deferred_open_record_create()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-07-26 19:18:37 +02:00 committed by Jeremy Allison
parent 67c5034531
commit 61765c7e15

View File

@ -2387,8 +2387,7 @@ static bool request_timed_out(struct smb_request *req, struct timeval timeout)
static struct deferred_open_record *deferred_open_record_create(
bool delayed_for_oplocks,
bool async_open,
struct file_id id)
bool async_open)
{
struct deferred_open_record *record = NULL;
@ -2444,9 +2443,7 @@ static void defer_open(struct share_mode_lock *lck,
delayed_for_oplocks ? "yes" : "no",
file_id_string_tos(&id));
open_rec = deferred_open_record_create(delayed_for_oplocks,
false,
id);
open_rec = deferred_open_record_create(delayed_for_oplocks, false);
if (open_rec == NULL) {
TALLOC_FREE(lck);
exit_server("talloc failed");
@ -2544,7 +2541,7 @@ static void setup_kernel_oplock_poll_open(struct smb_request *req,
return;
}
open_rec = deferred_open_record_create(false, false, id);
open_rec = deferred_open_record_create(false, false);
if (open_rec == NULL) {
exit_server("talloc failed");
}
@ -2667,7 +2664,7 @@ static void schedule_async_open(struct smb_request *req)
return;
}
open_rec = deferred_open_record_create(false, true, (struct file_id){0});
open_rec = deferred_open_record_create(false, true);
if (open_rec == NULL) {
exit_server("deferred_open_record_create failed");
}