diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock.c | 10 | ||||
-rw-r--r-- | source3/smbd/proto.h | 1 |
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, |