Lines Matching refs:TxAnchor

66 } TxAnchor;  variable
108 #define LAZY_LOCK_INIT() spin_lock_init(&TxAnchor.LazyLock)
109 #define LAZY_LOCK(flags) spin_lock_irqsave(&TxAnchor.LazyLock, flags)
110 #define LAZY_UNLOCK(flags) spin_unlock_irqrestore(&TxAnchor.LazyLock, flags)
185 if (!TxAnchor.freelock) { in txLockAlloc()
189 while (!(lid = TxAnchor.freelock)) in txLockAlloc()
190 TXN_SLEEP(&TxAnchor.freelockwait); in txLockAlloc()
191 TxAnchor.freelock = TxLock[lid].next; in txLockAlloc()
193 if ((++TxAnchor.tlocksInUse > TxLockHWM) && (jfs_tlocks_low == 0)) { in txLockAlloc()
205 TxLock[lid].next = TxAnchor.freelock; in txLockFree()
206 TxAnchor.freelock = lid; in txLockFree()
207 TxAnchor.tlocksInUse--; in txLockFree()
208 if (jfs_tlocks_low && (TxAnchor.tlocksInUse < TxLockLWM)) { in txLockFree()
211 TXN_WAKEUP(&TxAnchor.lowlockwait); in txLockFree()
213 TXN_WAKEUP(&TxAnchor.freelockwait); in txLockFree()
284 TxAnchor.freetid = 1; in txInit()
285 init_waitqueue_head(&TxAnchor.freewait); in txInit()
306 init_waitqueue_head(&TxAnchor.freelockwait); in txInit()
307 init_waitqueue_head(&TxAnchor.lowlockwait); in txInit()
309 TxAnchor.freelock = 1; in txInit()
310 TxAnchor.tlocksInUse = 0; in txInit()
311 INIT_LIST_HEAD(&TxAnchor.anon_list); in txInit()
312 INIT_LIST_HEAD(&TxAnchor.anon_list2); in txInit()
315 INIT_LIST_HEAD(&TxAnchor.unlock_queue); in txInit()
379 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBegin()
381 TXN_SLEEP(&TxAnchor.lowlockwait); in txBegin()
389 if ((t = TxAnchor.freetid) == 0) { in txBegin()
392 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
402 TXN_SLEEP(&TxAnchor.freewait); in txBegin()
406 TxAnchor.freetid = tblk->next; in txBegin()
470 if (TxAnchor.tlocksInUse > TxLockVHWM) { in txBeginAnon()
472 TXN_SLEEP(&TxAnchor.lowlockwait); in txBeginAnon()
528 tblk->next = TxAnchor.freetid; in txEnd()
529 TxAnchor.freetid = tid; in txEnd()
563 TXN_WAKEUP(&TxAnchor.freewait); in txEnd()
751 &TxAnchor.anon_list); in txLock()
1035 &TxAnchor.anon_list); in txMaplock()
2703 while (!list_empty(&TxAnchor.unlock_queue)) { in jfs_lazycommit()
2705 list_for_each_entry(tblk, &TxAnchor.unlock_queue, in jfs_lazycommit()
2760 if (!list_empty(&TxAnchor.unlock_queue)) in jfs_lazycommit()
2773 list_add_tail(&tblk->cqueue, &TxAnchor.unlock_queue); in txLazyUnlock()
2816 while (!list_empty(&TxAnchor.anon_list)) { in txQuiesce()
2817 jfs_ip = list_entry(TxAnchor.anon_list.next, in txQuiesce()
2844 if (!list_empty(&TxAnchor.anon_list2)) { in txQuiesce()
2845 list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list); in txQuiesce()
2887 while (jfs_tlocks_low && !list_empty(&TxAnchor.anon_list)) { in jfs_sync()
2888 jfs_ip = list_entry(TxAnchor.anon_list.next, in jfs_sync()
2925 &TxAnchor.anon_list2); in jfs_sync()
2933 list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list); in jfs_sync()
2957 waitqueue_active(&TxAnchor.freewait) ? "active" : "empty"; in jfs_txanchor_proc_show()
2959 waitqueue_active(&TxAnchor.freelockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
2961 waitqueue_active(&TxAnchor.lowlockwait) ? "active" : "empty"; in jfs_txanchor_proc_show()
2974 TxAnchor.freetid, in jfs_txanchor_proc_show()
2976 TxAnchor.freelock, in jfs_txanchor_proc_show()
2979 TxAnchor.tlocksInUse, in jfs_txanchor_proc_show()
2981 list_empty(&TxAnchor.unlock_queue) ? "" : "not "); in jfs_txanchor_proc_show()