Lines Matching refs:flag
178 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
179 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
180 static int lbmIOWait(struct lbuf * bp, int flag);
379 if (tlck->flag & tlckPAGELOCK) { in lmWriteRecord()
384 else if (tlck->flag & tlckINODELOCK) { in lmWriteRecord()
509 tblk->flag = tblkGC_QUEUE; in lmWriteRecord()
590 tblk->flag |= tblkGC_EOP; in lmNextPage()
665 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
666 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
675 tblk->flag |= tblkGC_LAZY; in lmGroupCommit()
678 (!(tblk->xflag & COMMIT_LAZY) || test_bit(log_FLUSH, &log->flag) in lmGroupCommit()
700 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
701 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
711 tblk->flag |= tblkGC_READY; in lmGroupCommit()
713 __SLEEP_COND(tblk->gcwait, (tblk->flag & tblkGC_COMMITTED), in lmGroupCommit()
717 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
761 tblk->flag |= tblkGC_COMMIT; in lmGCwrite()
771 if (tblk->flag & tblkGC_EOP) { in lmGCwrite()
773 tblk->flag &= ~tblkGC_EOP; in lmGCwrite()
774 tblk->flag |= tblkGC_FREE; in lmGCwrite()
818 if (!(tblk->flag & tblkGC_COMMIT)) in lmPostGC()
826 tblk->flag |= tblkGC_ERROR; in lmPostGC()
830 tblk->flag &= ~tblkGC_QUEUE; in lmPostGC()
834 clear_bit(log_FLUSH, &log->flag); in lmPostGC()
839 tblk->flag); in lmPostGC()
848 tblk->flag |= tblkGC_COMMITTED; in lmPostGC()
850 if (tblk->flag & tblkGC_READY) in lmPostGC()
859 if (tblk->flag & tblkGC_FREE) in lmPostGC()
864 else if (tblk->flag & tblkGC_EOP) { in lmPostGC()
885 test_bit(log_FLUSH, &log->flag) || jfs_tlocks_low)) in lmPostGC()
1016 if (!test_bit(log_SYNCBARRIER, &log->flag) && in lmLogSync()
1018 set_bit(log_SYNCBARRIER, &log->flag); in lmLogSync()
1040 if (!test_bit(log_QUIESCE, &log->flag)) in jfs_syncpt()
1065 if (sbi->flag & JFS_NOINTEGRITY) in lmLogOpen()
1164 set_bit(log_INLINELOG, &log->flag); in open_inline_log()
1273 if (!test_bit(log_INLINELOG, &log->flag)) in lmLogInit()
1309 if (test_bit(log_INLINELOG,&log->flag)) { in lmLogInit()
1456 if (test_bit(log_INLINELOG, &log->flag)) { in lmLogClose()
1529 if (test_bit(log_FLUSH, &log->flag)) { in jfs_flush_journal()
1541 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1552 if ((wait > 1) || test_bit(log_SYNCBARRIER, &log->flag)) { in jfs_flush_journal()
1554 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1558 if (wait && target && !(target->flag & tblkGC_COMMITTED)) { in jfs_flush_journal()
1614 clear_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
2011 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite() argument
2017 jfs_info("lbmWrite: bp:0x%p flag:0x%x pn:0x%x", bp, flag, bp->l_pn); in lbmWrite()
2028 bp->l_flag = flag; in lbmWrite()
2054 if ((bp != tail->l_wqnext) || !(flag & lbmWRITE)) { in lbmWrite()
2063 else if (flag & lbmSYNC) in lbmWrite()
2079 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite() argument
2082 bp, flag, bp->l_pn); in lbmDirectWrite()
2087 bp->l_flag = flag | lbmDIRECT; in lbmDirectWrite()
2143 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait() argument
2148 jfs_info("lbmIOWait1: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2156 if (flag & lbmFREE) in lbmIOWait()
2161 jfs_info("lbmIOWait2: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2393 logsuper->flag = cpu_to_le32(sbi->mntflag); /* ? */ in lmLogFormat()