]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused "msg_ctx" from brl_close_fnum()
authorVolker Lendecke <vl@samba.org>
Mon, 1 Jul 2019 13:31:04 +0000 (15:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 2 Jul 2019 17:01:28 +0000 (17:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/brlock.c
source3/locking/locking.c
source3/locking/proto.h

index c04320d533ad393165d6e18d86e2409addfb8c79..75c020f57a604e01b224145b69e12f3cfc18e3a9 100644 (file)
@@ -1358,8 +1358,7 @@ NTSTATUS brl_lockquery(struct byte_range_lock *br_lck,
  fd and so we should not immediately close the fd.
 ****************************************************************************/
 
-void brl_close_fnum(struct messaging_context *msg_ctx,
-                   struct byte_range_lock *br_lck)
+void brl_close_fnum(struct byte_range_lock *br_lck)
 {
        files_struct *fsp = br_lck->fsp;
        uint32_t tid = fsp->conn->cnum;
index 65718f10089745504ed2ff4ae4d7e62b87ca326e..b2871eba6f5972f83d83071c97b8f3b6c5abb058 100644 (file)
@@ -386,7 +386,7 @@ void locking_close_file(struct messaging_context *msg_ctx,
                 * implictly, we're closing the file and thus remove a
                 * share mode. This will wake the waiters.
                 */
-               brl_close_fnum(msg_ctx, br_lck);
+               brl_close_fnum(br_lck);
                TALLOC_FREE(br_lck);
        }
 }
index 111bca2777c006241340a8ebf2ac5a4954dd4c2e..3f30bcb316417106c3ae0663637a6c227322849f 100644 (file)
@@ -66,8 +66,7 @@ NTSTATUS brl_lockquery(struct byte_range_lock *br_lck,
                enum brl_flavour lock_flav);
 bool brl_mark_disconnected(struct files_struct *fsp);
 bool brl_reconnect_disconnected(struct files_struct *fsp);
-void brl_close_fnum(struct messaging_context *msg_ctx,
-                   struct byte_range_lock *br_lck);
+void brl_close_fnum(struct byte_range_lock *br_lck);
 int brl_forall(void (*fn)(struct file_id id, struct server_id pid,
                          enum brl_type lock_type,
                          enum brl_flavour lock_flav,