summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-03 14:44:45 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 13:34:48 +0200
commitcdc99b362f86cfab839076fba128699ae38d4039 (patch)
tree064d6ac1f7a05774e100e37f5fd15d8d07a759dc
parente6542683ca6d65b99972d763ebb4df52826fca1e (diff)
downloadsamba-cdc99b362f86cfab839076fba128699ae38d4039.tar.gz
samba-cdc99b362f86cfab839076fba128699ae38d4039.tar.bz2
samba-cdc99b362f86cfab839076fba128699ae38d4039.zip
smbd: Remove unused should_notify_deferred_opens
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/oplock.c10
-rw-r--r--source3/smbd/proto.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 4cdf68bc65..ba8298fe5a 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -211,16 +211,6 @@ bool downgrade_oplock(files_struct *fsp)
return ret;
}
-/*
- * Some kernel oplock implementations handle the notification themselves.
- */
-bool should_notify_deferred_opens(struct smbd_server_connection *sconn)
-{
- struct kernel_oplocks *koplocks = sconn->oplocks.kernel_ops;
- return !(koplocks &&
- (koplocks->flags & KOPLOCKS_DEFERRED_OPEN_NOTIFICATION));
-}
-
/****************************************************************************
Set up an oplock break message.
****************************************************************************/
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index f572c355f4..d9b9d4d973 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -663,7 +663,6 @@ 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);
-bool should_notify_deferred_opens(struct smbd_server_connection *sconn);
void contend_level2_oplocks_begin(files_struct *fsp,
enum level2_contention_type type);
void contend_level2_oplocks_end(files_struct *fsp,