summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-13 13:55:05 +0200
committerDavid Disseldorp <ddiss@samba.org>2013-10-24 14:21:56 +0200
commit670da42bfb2de69031f98d02ed09ca7b6680c927 (patch)
tree0a5fb7be78bffbcd382a3f67e15accdc141b5ce9 /source3/smbd
parent31ab49f173ddab8b431e3980e78468ab31e3c9bf (diff)
downloadsamba-670da42bfb2de69031f98d02ed09ca7b6680c927.tar.gz
samba-670da42bfb2de69031f98d02ed09ca7b6680c927.tar.bz2
samba-670da42bfb2de69031f98d02ed09ca7b6680c927.zip
smbd: Make release_file_oplock static
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock.c2
-rw-r--r--source3/smbd/proto.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index d30aa4b3d9..36a4b5ba1d 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -93,7 +93,7 @@ NTSTATUS set_file_oplock(files_struct *fsp, int oplock_type)
Attempt to release an oplock on a file. Decrements oplock count.
****************************************************************************/
-void release_file_oplock(files_struct *fsp)
+static void release_file_oplock(files_struct *fsp)
{
struct smbd_server_connection *sconn = fsp->conn->sconn;
struct kernel_oplocks *koplocks = sconn->oplocks.kernel_ops;
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 54d6da0b4c..bead710065 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -660,7 +660,6 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn,
void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp);
NTSTATUS set_file_oplock(files_struct *fsp, int oplock_type);
-void release_file_oplock(files_struct *fsp);
bool remove_oplock(files_struct *fsp);
bool downgrade_oplock(files_struct *fsp);
void contend_level2_oplocks_begin(files_struct *fsp,