summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 1a3a997e59..efaadffc06 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -18,33 +18,18 @@
*/
#include "includes.h"
-
-static int real_max_open_files;
+#include "smbd/globals.h"
#define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < real_max_open_files))
#define FILE_HANDLE_OFFSET 0x1000
-static struct bitmap *file_bmap;
-
-static files_struct *Files;
-
-static int files_used;
-
-/* A singleton cache to speed up searching by dev/inode. */
-static struct fsp_singleton_cache {
- files_struct *fsp;
- struct file_id id;
-} fsp_fi_cache;
-
/****************************************************************************
Return a unique number identifying this fsp over the life of this pid.
****************************************************************************/
static unsigned long get_gen_count(void)
{
- static unsigned long file_gen_counter;
-
if ((++file_gen_counter) == 0)
return ++file_gen_counter;
return file_gen_counter;
@@ -58,7 +43,6 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
files_struct **result)
{
int i;
- static int first_file;
files_struct *fsp;
/* we want to give out file handles differently on each new