Commit 03a18ce4 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: make some symbols static

The patch below makes some JFS symbols that are only used inside the
file they are defined in static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent 8f7f6cae
...@@ -161,9 +161,9 @@ do { \ ...@@ -161,9 +161,9 @@ do { \
/* /*
* Global list of active external journals * Global list of active external journals
*/ */
LIST_HEAD(jfs_external_logs); static LIST_HEAD(jfs_external_logs);
struct jfs_log *dummy_log = NULL; static struct jfs_log *dummy_log = NULL;
DECLARE_MUTEX(jfs_log_sem); static DECLARE_MUTEX(jfs_log_sem);
/* /*
* external references * external references
...@@ -205,7 +205,7 @@ static int lmLogSync(struct jfs_log * log, int nosyncwait); ...@@ -205,7 +205,7 @@ static int lmLogSync(struct jfs_log * log, int nosyncwait);
* statistics * statistics
*/ */
#ifdef CONFIG_JFS_STATISTICS #ifdef CONFIG_JFS_STATISTICS
struct lmStat { static struct lmStat {
uint commit; /* # of commit */ uint commit; /* # of commit */
uint pagedone; /* # of page written */ uint pagedone; /* # of page written */
uint submitted; /* # of pages submitted */ uint submitted; /* # of pages submitted */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
static spinlock_t meta_lock = SPIN_LOCK_UNLOCKED; static spinlock_t meta_lock = SPIN_LOCK_UNLOCKED;
#ifdef CONFIG_JFS_STATISTICS #ifdef CONFIG_JFS_STATISTICS
struct { static struct {
uint pagealloc; /* # of page allocations */ uint pagealloc; /* # of page allocations */
uint pagefree; /* # of page frees */ uint pagefree; /* # of page frees */
uint lockwait; /* # of sleeping lock_metapage() calls */ uint lockwait; /* # of sleeping lock_metapage() calls */
......
...@@ -80,7 +80,7 @@ static struct { ...@@ -80,7 +80,7 @@ static struct {
int jfs_tlocks_low; /* Indicates low number of available tlocks */ int jfs_tlocks_low; /* Indicates low number of available tlocks */
#ifdef CONFIG_JFS_STATISTICS #ifdef CONFIG_JFS_STATISTICS
struct { static struct {
uint txBegin; uint txBegin;
uint txBegin_barrier; uint txBegin_barrier;
uint txBegin_lockslow; uint txBegin_lockslow;
...@@ -152,7 +152,7 @@ static inline void TXN_SLEEP_DROP_LOCK(wait_queue_head_t * event) ...@@ -152,7 +152,7 @@ static inline void TXN_SLEEP_DROP_LOCK(wait_queue_head_t * event)
/* /*
* statistics * statistics
*/ */
struct { static struct {
tid_t maxtid; /* 4: biggest tid ever used */ tid_t maxtid; /* 4: biggest tid ever used */
lid_t maxlid; /* 4: biggest lid ever used */ lid_t maxlid; /* 4: biggest lid ever used */
int ntid; /* 4: # of transactions performed */ int ntid; /* 4: # of transactions performed */
......
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