smbd: Remove an unused parameter from defer_open()
authorVolker Lendecke <vl@samba.org>
Sun, 22 Dec 2019 17:20:12 +0000 (18:20 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 3 Jan 2020 01:30:24 +0000 (01:30 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Jan  3 01:30:24 UTC 2020 on sn-devel-184

source3/smbd/open.c

index 57e68cab41d49c3c46c399a030f582bb5872c8e6..a012e33316fe9bcf99aa4aff89b5c0b922bef3fa 100644 (file)
@@ -2673,7 +2673,6 @@ static void defer_open_done(struct tevent_req *req);
 static void defer_open(struct share_mode_lock *lck,
                       struct timeval timeout,
                       struct smb_request *req,
-                      bool delayed_for_oplocks,
                       struct file_id id)
 {
        struct deferred_open_record *open_rec = NULL;
@@ -2687,11 +2686,10 @@ static void defer_open(struct share_mode_lock *lck,
        abs_timeout = timeval_sum(&req->request_time, &timeout);
 
        DBG_DEBUG("request time [%s] timeout [%s] mid [%" PRIu64 "] "
-                 "delayed_for_oplocks [%s] file_id [%s]\n",
+                 "file_id [%s]\n",
                  timeval_str_buf(&req->request_time, false, true, &tvbuf1),
                  timeval_str_buf(&abs_timeout, false, true, &tvbuf2),
                  req->mid,
-                 delayed_for_oplocks ? "yes" : "no",
                  file_id_str_buf(id, &fbuf));
 
        open_rec = talloc_zero(NULL, struct deferred_open_record);
@@ -2980,7 +2978,7 @@ static void schedule_defer_open(struct share_mode_lock *lck,
                return;
        }
 
-       defer_open(lck, timeout, req, true, id);
+       defer_open(lck, timeout, req, id);
 }
 
 /****************************************************************************