Lines Matching refs:flag
181 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag,
183 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
184 static int lbmIOWait(struct lbuf * bp, int flag);
372 if (tlck->flag & tlckPAGELOCK) { in lmWriteRecord()
377 else if (tlck->flag & tlckINODELOCK) { in lmWriteRecord()
385 else if (tlck->flag & tlckINLINELOCK) { in lmWriteRecord()
510 tblk->flag = tblkGC_QUEUE; in lmWriteRecord()
593 tblk->flag |= tblkGC_EOP; in lmNextPage()
668 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
669 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
678 tblk->flag |= tblkGC_LAZY; in lmGroupCommit()
681 (!(tblk->xflag & COMMIT_LAZY) || test_bit(log_FLUSH, &log->flag))) { in lmGroupCommit()
702 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
703 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
713 tblk->flag |= tblkGC_READY; in lmGroupCommit()
715 __SLEEP_COND(tblk->gcwait, (tblk->flag & tblkGC_COMMITTED), in lmGroupCommit()
719 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
761 tblk->flag |= tblkGC_COMMIT; in lmGCwrite()
772 if (tblk->flag & tblkGC_EOP) { in lmGCwrite()
774 tblk->flag &= ~tblkGC_EOP; in lmGCwrite()
775 tblk->flag |= tblkGC_FREE; in lmGCwrite()
818 while ((tblk = log->cqueue.head) && (tblk->flag & tblkGC_COMMIT)) { in lmPostGC()
825 tblk->flag |= tblkGC_ERROR; in lmPostGC()
831 tblk->flag &= ~tblkGC_QUEUE; in lmPostGC()
836 clear_bit(log_FLUSH, &log->flag); in lmPostGC()
841 tblk->flag); in lmPostGC()
850 tblk->flag |= tblkGC_COMMITTED; in lmPostGC()
852 if (tblk->flag & tblkGC_READY) in lmPostGC()
861 if (tblk->flag & tblkGC_FREE) in lmPostGC()
866 else if (tblk->flag & tblkGC_EOP) { in lmPostGC()
887 test_bit(log_FLUSH, &log->flag))) in lmPostGC()
1035 set_bit(log_SYNCBARRIER, &log->flag); in lmLogSync()
1083 set_bit(log_INLINELOG, &log->flag); in lmLogOpen()
1200 if (!test_bit(log_INLINELOG, &log->flag)) in lmLogInit()
1221 if (test_bit(log_INLINELOG,&log->flag)) { in lmLogInit()
1243 if (JFS_SBI(log->sb)->flag & JFS_NOINTEGRITY) { in lmLogInit()
1377 if (!test_bit(log_INLINELOG, &log->flag)) in lmLogClose()
1432 if (test_bit(log_FLUSH, &log->flag)) { in jfs_flush_journal()
1444 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1455 if ((wait > 1) || test_bit(log_SYNCBARRIER, &log->flag)) { in jfs_flush_journal()
1457 set_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1461 if (wait && target && !(target->flag & tblkGC_COMMITTED)) { in jfs_flush_journal()
1492 clear_bit(log_FLUSH, &log->flag); in jfs_flush_journal()
1540 if (JFS_SBI(log->sb)->flag & JFS_NOINTEGRITY) { in lmLogShutdown()
1889 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite() argument
1895 jfs_info("lbmWrite: bp:0x%p flag:0x%x pn:0x%x", bp, flag, bp->l_pn); in lbmWrite()
1906 bp->l_flag = flag; in lbmWrite()
1932 if ((bp != tail->l_wqnext) || !(flag & lbmWRITE)) { in lbmWrite()
1941 else if (flag & lbmSYNC) in lbmWrite()
1957 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite() argument
1960 bp, flag, bp->l_pn); in lbmDirectWrite()
1965 bp->l_flag = flag | lbmDIRECT; in lbmDirectWrite()
2016 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait() argument
2021 jfs_info("lbmIOWait1: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2029 if (flag & lbmFREE) in lbmIOWait()
2034 jfs_info("lbmIOWait2: bp:0x%p flag:0x%x:0x%x", bp, bp->l_flag, flag); in lbmIOWait()
2277 logsuper->flag = cpu_to_le32(sbi->mntflag); /* ? */ in lmLogFormat()