• Home
  • Raw
  • Download

Lines Matching refs:TxAnchor

79 } TxAnchor;  variable
121 #define LAZY_LOCK_INIT() spin_lock_init(&TxAnchor.LazyLock);
122 #define LAZY_LOCK(flags) spin_lock_irqsave(&TxAnchor.LazyLock, flags)
123 #define LAZY_UNLOCK(flags) spin_unlock_irqrestore(&TxAnchor.LazyLock, flags)
199 if (!TxAnchor.freelock) { in txLockAlloc()
203 while (!(lid = TxAnchor.freelock)) in txLockAlloc()
204 TXN_SLEEP(&TxAnchor.freelockwait); in txLockAlloc()
205 TxAnchor.freelock = TxLock[lid].next; in txLockAlloc()
207 if ((++TxAnchor.tlocksInUse > TxLockHWM) && (jfs_tlocks_low == 0)) { in txLockAlloc()
219 TxLock[lid].next = TxAnchor.freelock; in txLockFree()
220 TxAnchor.freelock = lid; in txLockFree()
221 TxAnchor.tlocksInUse--; in txLockFree()
222 if (jfs_tlocks_low && (TxAnchor.tlocksInUse < TxLockLWM)) { in txLockFree()
225 TXN_WAKEUP(&TxAnchor.lowlockwait); in txLockFree()
227 TXN_WAKEUP(&TxAnchor.freelockwait); in txLockFree()
298 TxAnchor.freetid = 1; in txInit()
299 init_waitqueue_head(&TxAnchor.freewait); in txInit()
320 init_waitqueue_head(&TxAnchor.freelockwait); in txInit()
321 init_waitqueue_head(&TxAnchor.lowlockwait); in txInit()
323 TxAnchor.freelock = 1; in txInit()
324 TxAnchor.tlocksInUse = 0; in txInit()
325 INIT_LIST_HEAD(&TxAnchor.anon_list); in txInit()
326 INIT_LIST_HEAD(&TxAnchor.anon_list2); in txInit()
329 INIT_LIST_HEAD(&TxAnchor.unlock_queue); in txInit()
393 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBegin()
395 TXN_SLEEP(&TxAnchor.lowlockwait); in txBegin()
403 if ((t = TxAnchor.freetid) == 0) { in txBegin()
406 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
416 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
420 TxAnchor.freetid = tblk->next; in txBegin()
484 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBeginAnon()
486 TXN_SLEEP(&TxAnchor.lowlockwait); in txBeginAnon()
542 tblk->next = TxAnchor.freetid; in txEnd()
543 TxAnchor.freetid = tid; in txEnd()
577 TXN_WAKEUP(&TxAnchor.freewait); in txEnd()
765 &TxAnchor.anon_list); in txLock()
1049 &TxAnchor.anon_list); in txMaplock()
2759 while (!list_empty(&TxAnchor.unlock_queue)) { in jfs_lazycommit()
2761 list_for_each_entry(tblk, &TxAnchor.unlock_queue, in jfs_lazycommit()
2817 if (!list_empty(&TxAnchor.unlock_queue)) in jfs_lazycommit()
2830 list_add_tail(&tblk->cqueue, &TxAnchor.unlock_queue); in txLazyUnlock()
2873 while (!list_empty(&TxAnchor.anon_list)) { in txQuiesce()
2874 jfs_ip = list_entry(TxAnchor.anon_list.next, in txQuiesce()
2901 if (!list_empty(&TxAnchor.anon_list2)) { in txQuiesce()
2902 list_splice(&TxAnchor.anon_list2, &TxAnchor.anon_list); in txQuiesce()
2903 INIT_LIST_HEAD(&TxAnchor.anon_list2); in txQuiesce()
2946 while (jfs_tlocks_low && !list_empty(&TxAnchor.anon_list)) { in jfs_sync()
2947 jfs_ip = list_entry(TxAnchor.anon_list.next, in jfs_sync()
2987 &TxAnchor.anon_list2); in jfs_sync()
2995 list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list); in jfs_sync()
3020 waitqueue_active(&TxAnchor.freewait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3022 waitqueue_active(&TxAnchor.freelockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3024 waitqueue_active(&TxAnchor.lowlockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3037 TxAnchor.freetid, in jfs_txanchor_proc_show()
3039 TxAnchor.freelock, in jfs_txanchor_proc_show()
3042 TxAnchor.tlocksInUse, in jfs_txanchor_proc_show()
3044 list_empty(&TxAnchor.unlock_queue) ? "" : "not "); in jfs_txanchor_proc_show()