1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

smbd: Remove unused "msg_ctx" from locking_close_file()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-07-01 15:35:19 +02:00 committed by Jeremy Allison
parent 0658626776
commit 45d2720a87
3 changed files with 3 additions and 5 deletions

View File

@ -358,8 +358,7 @@ NTSTATUS do_unlock(files_struct *fsp,
Remove any locks on this fd. Called from file_close().
****************************************************************************/
void locking_close_file(struct messaging_context *msg_ctx,
files_struct *fsp,
void locking_close_file(files_struct *fsp,
enum file_close_type close_type)
{
struct byte_range_lock *br_lck;

View File

@ -109,8 +109,7 @@ NTSTATUS do_unlock(files_struct *fsp,
uint64_t count,
uint64_t offset,
enum brl_flavour lock_flav);
void locking_close_file(struct messaging_context *msg_ctx,
files_struct *fsp,
void locking_close_file(files_struct *fsp,
enum file_close_type close_type);
bool locking_init(void);
bool locking_init_readonly(void);

View File

@ -781,7 +781,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
status = ntstatus_keeperror(status, tmp);
}
locking_close_file(conn->sconn->msg_ctx, fsp, close_type);
locking_close_file(fsp, close_type);
tmp = fd_close(fsp);
status = ntstatus_keeperror(status, tmp);