From 469a2c8e7cbcb0c9089f50b9323255840dc6ed04 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 24 May 2012 23:15:08 +0200 Subject: s3:smbd: move global oplocks vars to smbd_server_connection metze --- source3/smbd/globals.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/smbd/globals.h') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 24c21ffee4..f49cdbb473 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -108,9 +108,6 @@ extern struct vfs_init_function_entry *backends; extern char *sparse_buf; extern char *LastDir; -/* Current number of oplocks we have outstanding. */ -extern int32_t exclusive_oplocks_open; -extern int32_t level_II_oplocks_open; extern struct kernel_oplocks *koplocks; struct smbd_parent_context; @@ -519,6 +516,12 @@ struct smbd_server_connection { uint64_t num_requests; + /* Current number of oplocks we have outstanding. */ + struct { + int32_t exclusive_open; + int32_t level_II_open; + } oplocks; + struct { struct fd_event *fde; -- cgit