X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fjfs_txnmgr.c;h=1d870dc3dfaa59fdd0d15e21f1d5de9e2d21572c;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=12e9ccffb49bfe7d6fcb8f6bc47cff8facc9b0c0;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index 12e9ccffb..1d870dc3d 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c @@ -80,7 +80,7 @@ static struct { int jfs_tlocks_low; /* Indicates low number of available tlocks */ #ifdef CONFIG_JFS_STATISTICS -struct { +static struct { uint txBegin; uint txBegin_barrier; uint txBegin_lockslow; @@ -113,7 +113,7 @@ struct tlock *TxLock; /* transaction lock table */ /* * transaction management lock */ -static spinlock_t jfsTxnLock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(jfsTxnLock); #define TXN_LOCK() spin_lock(&jfsTxnLock) #define TXN_UNLOCK() spin_unlock(&jfsTxnLock) @@ -152,7 +152,7 @@ static inline void TXN_SLEEP_DROP_LOCK(wait_queue_head_t * event) /* * statistics */ -struct { +static struct { tid_t maxtid; /* 4: biggest tid ever used */ lid_t maxlid; /* 4: biggest lid ever used */ int ntid; /* 4: # of transactions performed */