Commit eb18d9be authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move VSC_C_main to cache namespace only

parent 889a8e4c
...@@ -850,6 +850,7 @@ int SES_Schedule(struct sess *sp); ...@@ -850,6 +850,7 @@ int SES_Schedule(struct sess *sp);
/* cache_shmlog.c */ /* cache_shmlog.c */
extern struct VSC_C_main *VSC_C_main;
void VSL_Init(void); void VSL_Init(void);
void *VSM_Alloc(unsigned size, const char *class, const char *type, void *VSM_Alloc(unsigned size, const char *class, const char *type,
const char *ident); const char *ident);
......
...@@ -47,6 +47,8 @@ static uint32_t *vsl_start; ...@@ -47,6 +47,8 @@ static uint32_t *vsl_start;
static const uint32_t *vsl_end; static const uint32_t *vsl_end;
static uint32_t *vsl_ptr; static uint32_t *vsl_ptr;
struct VSC_C_main *VSC_C_main;
static inline uint32_t static inline uint32_t
vsl_w0(uint32_t type, uint32_t length) vsl_w0(uint32_t type, uint32_t length)
{ {
......
...@@ -49,7 +49,6 @@ extern pid_t mgt_pid; ...@@ -49,7 +49,6 @@ extern pid_t mgt_pid;
#define ASSERT_MGT() do { assert(getpid() == mgt_pid);} while (0) #define ASSERT_MGT() do { assert(getpid() == mgt_pid);} while (0)
/* mgt_shmem.c */ /* mgt_shmem.c */
extern struct VSC_C_main *VSC_C_main;
#define PAN_CLASS "Panic" #define PAN_CLASS "Panic"
extern char *PAN_panicstr; extern char *PAN_panicstr;
extern unsigned PAN_panicstr_len; extern unsigned PAN_panicstr_len;
......
...@@ -57,8 +57,6 @@ ...@@ -57,8 +57,6 @@
#define MAP_NOSYNC 0 /* XXX Linux */ #define MAP_NOSYNC 0 /* XXX Linux */
#endif #endif
struct VSC_C_main *VSC_C_main;
static int vsm_fd = -1; static int vsm_fd = -1;
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment