From 387f126d0749355eed32f75708d488ef6ad17349 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 Aug 2022 09:48:40 +0200 Subject: s3:smbd: remove static from release_file_oplock() It will be used in close.c in the next commit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/smbd/proto.h | 1 + source3/smbd/smb2_oplock.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 743375a7d90..91bce9c7203 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -770,6 +770,7 @@ uint32_t get_lease_type(struct share_mode_entry *e, struct file_id id); void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp); NTSTATUS set_file_oplock(files_struct *fsp); +void release_file_oplock(files_struct *fsp); bool remove_oplock(files_struct *fsp); bool downgrade_oplock(files_struct *fsp); bool fsp_lease_update(struct files_struct *fsp); diff --git a/source3/smbd/smb2_oplock.c b/source3/smbd/smb2_oplock.c index a7bf803e878..2fd98286a92 100644 --- a/source3/smbd/smb2_oplock.c +++ b/source3/smbd/smb2_oplock.c @@ -126,7 +126,7 @@ static void release_fsp_kernel_oplock(files_struct *fsp) Attempt to release an oplock on a file. Decrements oplock count. ****************************************************************************/ -static void release_file_oplock(files_struct *fsp) +void release_file_oplock(files_struct *fsp) { struct smbd_server_connection *sconn = fsp->conn->sconn; -- cgit v1.2.1