diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-24 23:15:08 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-25 09:05:34 +0200 |
commit | 469a2c8e7cbcb0c9089f50b9323255840dc6ed04 (patch) | |
tree | 84c18d7b083ee777314304b8e87dd1562b3dc529 /source3/smbd/globals.h | |
parent | 2f435bb61aeaee142f8a826db6aed88d3dc3ab91 (diff) | |
download | samba-469a2c8e7cbcb0c9089f50b9323255840dc6ed04.tar.gz samba-469a2c8e7cbcb0c9089f50b9323255840dc6ed04.tar.bz2 samba-469a2c8e7cbcb0c9089f50b9323255840dc6ed04.zip |
s3:smbd: move global oplocks vars to smbd_server_connection
metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r-- | source3/smbd/globals.h | 9 |
1 files changed, 6 insertions, 3 deletions
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; |