• Home
  • Raw
  • Download

Lines Matching refs:log

151 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
153 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
155 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
157 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
162 static int txLog(struct jfs_log * log, struct tblock * tblk,
166 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
352 struct jfs_log *log; in txBegin() local
355 log = JFS_SBI(sb)->log; in txBegin()
366 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
367 test_bit(log_QUIESCE, &log->flag)) { in txBegin()
369 TXN_SLEEP(&log->syncwait); in txBegin()
421 ++log->logtid; in txBegin()
422 tblk->logtid = log->logtid; in txBegin()
424 ++log->active; in txBegin()
449 struct jfs_log *log; in txBeginAnon() local
451 log = JFS_SBI(sb)->log; in txBeginAnon()
460 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBeginAnon()
461 test_bit(log_QUIESCE, &log->flag)) { in txBeginAnon()
463 TXN_SLEEP(&log->syncwait); in txBeginAnon()
490 struct jfs_log *log; in txEnd() local
501 log = JFS_SBI(tblk->sb)->log; in txEnd()
515 spin_lock_irq(&log->gclock); // LOGGC_LOCK in txEnd()
517 spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK in txEnd()
534 if (--log->active == 0) { in txEnd()
535 clear_bit(log_FLUSH, &log->flag); in txEnd()
540 if (test_bit(log_SYNCBARRIER, &log->flag)) { in txEnd()
544 jfs_syncpt(log, 1); in txEnd()
546 jfs_info("log barrier off: 0x%x", log->lsn); in txEnd()
549 clear_bit(log_SYNCBARRIER, &log->flag); in txEnd()
552 TXN_WAKEUP(&log->syncwait); in txEnd()
901 struct jfs_log *log; in txUnlock() local
906 log = JFS_SBI(tblk->sb)->log; in txUnlock()
930 LOGSYNC_LOCK(log, flags); in txUnlock()
932 logdiff(difft, tblk->clsn, log); in txUnlock()
933 logdiff(diffp, mp->clsn, log); in txUnlock()
938 LOGSYNC_UNLOCK(log, flags); in txUnlock()
969 LOGSYNC_LOCK(log, flags); in txUnlock()
970 log->count--; in txUnlock()
972 LOGSYNC_UNLOCK(log, flags); in txUnlock()
1129 struct jfs_log *log; in txCommit() local
1155 log = JFS_SBI(sb)->log; in txCommit()
1156 cd.log = log; in txCommit()
1259 if ((rc = txLog(log, tblk, &cd))) in txCommit()
1298 lmLog(log, tblk, lrd, NULL); in txCommit()
1300 lmGroupCommit(log, tblk); in txCommit()
1368 static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd) in txLog() argument
1387 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); in txLog()
1388 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); in txLog()
1393 xtLog(log, tblk, lrd, tlck); in txLog()
1397 dtLog(log, tblk, lrd, tlck); in txLog()
1401 diLog(log, tblk, lrd, tlck, cd); in txLog()
1405 mapLog(log, tblk, lrd, tlck); in txLog()
1409 dataLog(log, tblk, lrd, tlck); in txLog()
1425 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in diLog() argument
1436 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1437 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1439 pxd = &lrd->log.redopage.pxd; in diLog()
1450 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1480 lrd->log.noredoinoext.iagnum = in diLog()
1482 lrd->log.noredoinoext.inoext_idx = in diLog()
1487 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1514 lrd->log.updatemap.type = in diLog()
1517 lrd->log.updatemap.type = in diLog()
1519 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1520 lrd->log.updatemap.pxd = pxdlock->pxd; in diLog()
1522 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1538 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dataLog() argument
1547 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
1548 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); in dataLog()
1550 pxd = &lrd->log.redopage.pxd; in dataLog()
1571 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1584 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dtLog() argument
1594 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); in dtLog()
1595 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); in dtLog()
1597 pxd = &lrd->log.redopage.pxd; in dtLog()
1600 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in dtLog()
1615 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); in dtLog()
1617 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); in dtLog()
1621 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1650 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1672 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in dtLog()
1687 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in xtLog() argument
1704 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); in xtLog()
1705 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); in xtLog()
1707 page_pxd = &lrd->log.redopage.pxd; in xtLog()
1710 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in xtLog()
1713 lrd->log.redopage.type |= in xtLog()
1740 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1831 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1837 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1846 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); in xtLog()
1849 lrd->log.updatemap.nxd = in xtLog()
1855 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1950 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1964 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in xtLog()
1965 lrd->log.updatemap.nxd = cpu_to_le16(1); in xtLog()
1966 lrd->log.updatemap.pxd = pxdlock->pxd; in xtLog()
1969 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1981 lrd->log.updatemap.type = in xtLog()
1985 lrd->log.updatemap.nxd = in xtLog()
1992 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2070 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in mapLog() argument
2090 pxd = &lrd->log.redopage.pxd; in mapLog()
2092 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2105 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in mapLog()
2106 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2107 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2108 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2132 lrd->log.updatemap.type = in mapLog()
2135 lrd->log.updatemap.type = in mapLog()
2137 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2138 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2140 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2684 struct jfs_log *log; in txLazyCommit() local
2698 log = (struct jfs_log *) JFS_SBI(tblk->sb)->log; in txLazyCommit()
2700 spin_lock_irq(&log->gclock); // LOGGC_LOCK in txLazyCommit()
2705 log->gcrtc--; in txLazyCommit()
2713 spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK in txLazyCommit()
2718 spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK in txLazyCommit()
2825 struct jfs_log *log = mp->log; in LogSyncRelease() local
2828 assert(log); in LogSyncRelease()
2846 struct jfs_log *log = JFS_SBI(sb)->log; in txQuiesce() local
2849 set_bit(log_QUIESCE, &log->flag); in txQuiesce()
2890 jfs_flush_journal(log, 0); in txQuiesce()
2900 struct jfs_log *log = JFS_SBI(sb)->log; in txResume() local
2902 clear_bit(log_QUIESCE, &log->flag); in txResume()
2903 TXN_WAKEUP(&log->syncwait); in txResume()