From 316365805a427bc95465d9f42605885111d41baf Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 1 Jul 2019 15:31:04 +0200 Subject: [PATCH] smbd: Remove unused "msg_ctx" from brl_close_fnum() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/brlock.c | 3 +-- source3/locking/locking.c | 2 +- source3/locking/proto.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index c04320d533a..75c020f57a6 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -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; diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 65718f10089..b2871eba6f5 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -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); } } diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 111bca2777c..3f30bcb3164 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -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, -- 2.11.4.GIT