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()
392 else if (tlck->flag & tlckINLINELOCK) { in lmWriteRecord()
517 tblk->flag = tblkGC_QUEUE; in lmWriteRecord()
598 tblk->flag |= tblkGC_EOP; in lmNextPage()
673 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
674 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
683 tblk->flag |= tblkGC_LAZY; in lmGroupCommit()
686 (!(tblk->xflag & COMMIT_LAZY) || test_bit(log_FLUSH, &log->flag) in lmGroupCommit()
708 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
709 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
719 tblk->flag |= tblkGC_READY; in lmGroupCommit()
721 __SLEEP_COND(tblk->gcwait, (tblk->flag & tblkGC_COMMITTED), in lmGroupCommit()
725 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
769 tblk->flag |= tblkGC_COMMIT; in lmGCwrite()
779 if (tblk->flag & tblkGC_EOP) { in lmGCwrite()
781 tblk->flag &= ~tblkGC_EOP; in lmGCwrite()
782 tblk->flag |= tblkGC_FREE; in lmGCwrite()
826 if (!(tblk->flag & tblkGC_COMMIT)) in lmPostGC()
834 tblk->flag |= tblkGC_ERROR; in lmPostGC()
838 tblk->flag &= ~tblkGC_QUEUE; in lmPostGC()
842 clear_bit(log_FLUSH, &log->flag); in lmPostGC()
847 tblk->flag); in lmPostGC()
856 tblk->flag |= tblkGC_COMMITTED; in lmPostGC()
858 if (tblk->flag & tblkGC_READY) in lmPostGC()
867 if (tblk->flag & tblkGC_FREE) in lmPostGC()
872 else if (tblk->flag & tblkGC_EOP) { in lmPostGC()
893 test_bit(log_FLUSH, &log->flag) || jfs_tlocks_low)) in lmPostGC()
1024 if (!test_bit(log_SYNCBARRIER, &log->flag) && in lmLogSync()
1026 set_bit(log_SYNCBARRIER, &log->flag); in lmLogSync()
1048 if (!test_bit(log_QUIESCE, &log->flag)) in jfs_syncpt()
1073 if (sbi->flag & JFS_NOINTEGRITY) in lmLogOpen()
1172 set_bit(log_INLINELOG, &log->flag); in open_inline_log()
1281 if (!test_bit(log_INLINELOG, &log->flag)) in lmLogInit()
1317 if (test_bit(log_INLINELOG,&log->flag)) { in lmLogInit()
1464 if (test_bit(log_INLINELOG, &log->flag)) { in lmLogClose()
1537 if (test_bit(log_FLUSH, &log->flag)) { in jfs_flush_journal()
1549 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1560 if ((wait > 1) || test_bit(log_SYNCBARRIER, &log->flag)) { in jfs_flush_journal()
1562 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1566 if (wait && target && !(target->flag & tblkGC_COMMITTED)) { in jfs_flush_journal()
1622 clear_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
2023 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite() argument
2029 jfs_info("lbmWrite: bp:0x%p flag:0x%x pn:0x%x", bp, flag, bp->l_pn); in lbmWrite()
2040 bp->l_flag = flag; in lbmWrite()
2066 if ((bp != tail->l_wqnext) || !(flag & lbmWRITE)) { in lbmWrite()
2075 else if (flag & lbmSYNC) in lbmWrite()
2091 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite() argument
2094 bp, flag, bp->l_pn); in lbmDirectWrite()
2099 bp->l_flag = flag | lbmDIRECT; in lbmDirectWrite()
2153 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait() argument
2158 jfs_info("lbmIOWait1: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2166 if (flag & lbmFREE) in lbmIOWait()
2171 jfs_info("lbmIOWait2: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2403 logsuper->flag = cpu_to_le32(sbi->mntflag); /* ? */ in lmLogFormat()