diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-08-30 09:48:40 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-09-20 00:34:35 +0000 |
commit | 387f126d0749355eed32f75708d488ef6ad17349 (patch) | |
tree | d7542c7d6413f6ac73bd78b74947bbf5f9ff06da | |
parent | a4dd4d5f0fdb8cb242dde93cf620f238fccf9e9c (diff) | |
download | samba-387f126d0749355eed32f75708d488ef6ad17349.tar.gz |
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/proto.h | 1 | ||||
-rw-r--r-- | source3/smbd/smb2_oplock.c | 2 |
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; |