Lines Matching refs:flag
348 tid_t txBegin(struct super_block *sb, int flag) in txBegin() argument
354 jfs_info("txBegin: flag = 0x%x", flag); in txBegin()
362 if (!(flag & COMMIT_FORCE)) { in txBegin()
366 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
367 test_bit(log_QUIESCE, &log->flag)) { in txBegin()
373 if (flag == 0) { in txBegin()
398 if ((tblk->next == 0) && !(flag & COMMIT_FORCE)) { in txBegin()
418 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin()
460 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBeginAnon()
461 test_bit(log_QUIESCE, &log->flag)) { in txBeginAnon()
511 if (tblk->flag & tblkGC_LAZY) { in txEnd()
516 tblk->flag |= tblkGC_UNLOCKED; in txEnd()
535 clear_bit(log_FLUSH, &log->flag); in txEnd()
540 if (test_bit(log_SYNCBARRIER, &log->flag)) { in txEnd()
549 clear_bit(log_SYNCBARRIER, &log->flag); in txEnd()
694 tlck->flag = tlckPAGELOCK; in txLock()
712 tlck->flag = tlckINODELOCK; in txLock()
715 tlck->flag |= tlckDIRECTORY; in txLock()
759 linelock->flag = tlckLINELOCK; in txLock()
940 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
1004 tlck->flag = tlckINODELOCK; in txMaplock()
1006 tlck->flag |= tlckDIRECTORY; in txMaplock()
1072 linelock->flag = tlckLINELOCK; in txLinelock()
1075 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1076 linelock->flag |= tlckDIRECTORY; in txLinelock()
1125 int flag) in txCommit() argument
1138 jfs_info("txCommit, tid = %d, flag = %d", tid, flag); in txCommit()
1163 tblk->xflag |= flag; in txCommit()
1165 if ((flag & (COMMIT_FORCE | COMMIT_SYNC)) == 0) in txCommit()
1310 if (flag & COMMIT_FORCE) in txCommit()
1330 if ((tblk->flag & tblkGC_LAZY) == 0) in txCommit()
1382 tlck->flag |= tlckLOG; in txLog()
1453 tlck->flag |= tlckWRITEPAGE; in diLog()
1490 tlck->flag |= tlckUPDATEMAP; in diLog()
1493 tlck->flag |= tlckWRITEPAGE; in diLog()
1513 if (pxdlock->flag & mlckALLOCPXD) in diLog()
1526 tlck->flag |= tlckUPDATEMAP; in diLog()
1574 tlck->flag |= tlckWRITEPAGE; in dataLog()
1628 tlck->flag |= tlckUPDATEMAP; in dtLog()
1630 pxdlock->flag = mlckALLOCPXD; in dtLog()
1636 tlck->flag |= tlckWRITEPAGE; in dtLog()
1653 tlck->flag |= tlckWRITEPAGE; in dtLog()
1677 tlck->flag |= tlckUPDATEMAP; in dtLog()
1757 tlck->flag |= tlckUPDATEMAP; in xtLog()
1758 xadlock->flag = mlckALLOCXADLIST; in xtLog()
1770 xadlock->flag = mlckALLOCPXDLIST; in xtLog()
1775 p->xad[lwm + i].flag &= in xtLog()
1784 xadlock->flag = mlckALLOCXADLIST; in xtLog()
1795 tlck->flag |= tlckWRITEPAGE; in xtLog()
1861 tlck->flag |= tlckUPDATEMAP; in xtLog()
1873 xadlock->flag = mlckFREEPXDLIST; in xtLog()
1887 xadlock->flag = mlckFREEXADLIST; in xtLog()
1899 tlck->flag |= tlckFREEPAGE; in xtLog()
2009 tlck->flag |= tlckUPDATEMAP; in xtLog()
2010 xadlock->flag = mlckALLOCXADLIST; in xtLog()
2029 tlck->flag |= tlckUPDATEMAP; in xtLog()
2031 pxdlock->flag = mlckFREEPXD; in xtLog()
2049 tlck->flag |= tlckUPDATEMAP; in xtLog()
2050 xadlock->flag = mlckFREEXADLIST; in xtLog()
2060 tlck->flag |= tlckWRITEPAGE; in xtLog()
2113 tlck->flag |= tlckUPDATEMAP; in mapLog()
2131 if (pxdlock->flag & mlckALLOCPXD) in mapLog()
2147 tlck->flag |= tlckUPDATEMAP; in mapLog()
2170 if (newea->flag & DXD_EXTENT) { in txEA()
2174 pxdlock->flag = mlckALLOCPXD; in txEA()
2179 } else if (newea->flag & DXD_INLINE) { in txEA()
2189 if (!test_cflag(COMMIT_Nolink, ip) && oldea->flag & DXD_EXTENT) { in txEA()
2196 pxdlock->flag = mlckFREEPXD; in txEA()
2243 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2244 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2261 set_bit(META_dirty, &mp->flag); in txForce()
2262 set_bit(META_sync, &mp->flag); in txForce()
2309 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2312 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2339 if (maplock->flag & mlckALLOC) { in txUpdateMap()
2358 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2366 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2367 if (!(tblk->flag & tblkGC_LAZY)) { in txUpdateMap()
2392 pxdlock.flag = mlckALLOCPXD; in txUpdateMap()
2439 if (maplock->flag & mlckALLOCXADLIST) { in txAllocPMap()
2443 if (xad->flag & (XAD_NEW | XAD_EXTENDED)) { in txAllocPMap()
2448 xad->flag &= ~(XAD_NEW | XAD_EXTENDED); in txAllocPMap()
2453 } else if (maplock->flag & mlckALLOCPXD) { in txAllocPMap()
2501 if (maplock->flag & mlckFREEXADLIST) { in txFreeMap()
2505 if (!(xad->flag & XAD_NEW)) { in txFreeMap()
2514 } else if (maplock->flag & mlckFREEPXD) { in txFreeMap()
2541 if (maplock->flag & mlckFREEXADLIST) { in txFreeMap()
2548 xad->flag = 0; in txFreeMap()
2552 } else if (maplock->flag & mlckFREEPXD) { in txFreeMap()
2593 if (tlck->flag & tlckFREELOCK) { in txFreelock()
2686 while (((tblk->flag & tblkGC_READY) == 0) && in txLazyCommit()
2687 ((tblk->flag & tblkGC_UNLOCKED) == 0)) { in txLazyCommit()
2702 tblk->flag |= tblkGC_COMMITTED; in txLazyCommit()
2704 if (tblk->flag & tblkGC_READY) in txLazyCommit()
2712 if (tblk->flag & tblkGC_LAZY) { in txLazyCommit()
2715 tblk->flag &= ~tblkGC_LAZY; in txLazyCommit()
2849 set_bit(log_QUIESCE, &log->flag); in txQuiesce()
2902 clear_bit(log_QUIESCE, &log->flag); in txResume()