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)
198 if (!TxAnchor.freelock) { in txLockAlloc()
202 while (!(lid = TxAnchor.freelock)) in txLockAlloc()
203 TXN_SLEEP(&TxAnchor.freelockwait); in txLockAlloc()
204 TxAnchor.freelock = TxLock[lid].next; in txLockAlloc()
206 if ((++TxAnchor.tlocksInUse > TxLockHWM) && (jfs_tlocks_low == 0)) { in txLockAlloc()
218 TxLock[lid].next = TxAnchor.freelock; in txLockFree()
219 TxAnchor.freelock = lid; in txLockFree()
220 TxAnchor.tlocksInUse--; in txLockFree()
221 if (jfs_tlocks_low && (TxAnchor.tlocksInUse < TxLockLWM)) { in txLockFree()
224 TXN_WAKEUP(&TxAnchor.lowlockwait); in txLockFree()
226 TXN_WAKEUP(&TxAnchor.freelockwait); in txLockFree()
297 TxAnchor.freetid = 1; in txInit()
298 init_waitqueue_head(&TxAnchor.freewait); in txInit()
319 init_waitqueue_head(&TxAnchor.freelockwait); in txInit()
320 init_waitqueue_head(&TxAnchor.lowlockwait); in txInit()
322 TxAnchor.freelock = 1; in txInit()
323 TxAnchor.tlocksInUse = 0; in txInit()
324 INIT_LIST_HEAD(&TxAnchor.anon_list); in txInit()
325 INIT_LIST_HEAD(&TxAnchor.anon_list2); in txInit()
328 INIT_LIST_HEAD(&TxAnchor.unlock_queue); in txInit()
397 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBegin()
399 TXN_SLEEP(&TxAnchor.lowlockwait); in txBegin()
407 if ((t = TxAnchor.freetid) == 0) { in txBegin()
410 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
420 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
424 TxAnchor.freetid = tblk->next; in txBegin()
488 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBeginAnon()
490 TXN_SLEEP(&TxAnchor.lowlockwait); in txBeginAnon()
546 tblk->next = TxAnchor.freetid; in txEnd()
547 TxAnchor.freetid = tid; in txEnd()
581 TXN_WAKEUP(&TxAnchor.freewait); in txEnd()
769 &TxAnchor.anon_list); in txLock()
1053 &TxAnchor.anon_list); in txMaplock()
2758 while (!list_empty(&TxAnchor.unlock_queue)) { in jfs_lazycommit()
2760 list_for_each_entry(tblk, &TxAnchor.unlock_queue, in jfs_lazycommit()
2815 if (!list_empty(&TxAnchor.unlock_queue)) in jfs_lazycommit()
2828 list_add_tail(&tblk->cqueue, &TxAnchor.unlock_queue); in txLazyUnlock()
2871 while (!list_empty(&TxAnchor.anon_list)) { in txQuiesce()
2872 jfs_ip = list_entry(TxAnchor.anon_list.next, in txQuiesce()
2899 if (!list_empty(&TxAnchor.anon_list2)) { in txQuiesce()
2900 list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list); in txQuiesce()
2942 while (jfs_tlocks_low && !list_empty(&TxAnchor.anon_list)) { in jfs_sync()
2943 jfs_ip = list_entry(TxAnchor.anon_list.next, in jfs_sync()
2980 &TxAnchor.anon_list2); in jfs_sync()
2988 list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list); in jfs_sync()
3012 waitqueue_active(&TxAnchor.freewait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3014 waitqueue_active(&TxAnchor.freelockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3016 waitqueue_active(&TxAnchor.lowlockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
3029 TxAnchor.freetid, in jfs_txanchor_proc_show()
3031 TxAnchor.freelock, in jfs_txanchor_proc_show()
3034 TxAnchor.tlocksInUse, in jfs_txanchor_proc_show()
3036 list_empty(&TxAnchor.unlock_queue) ? "" : "not "); in jfs_txanchor_proc_show()