summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/proto.h1
-rw-r--r--source3/smbd/smb2_oplock.c2
2 files changed, 2 insertions, 1 deletions
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;