Lines Matching refs:lrd
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,
166 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1131 struct lrd *lrd; in txCommit() local
1159 lrd = &cd.lrd; in txCommit()
1160 lrd->logtid = cpu_to_le32(tblk->logtid); in txCommit()
1161 lrd->backchain = 0; in txCommit()
1296 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1297 lrd->length = 0; in txCommit()
1298 lmLog(log, tblk, lrd, NULL); in txCommit()
1374 struct lrd *lrd = &cd->lrd; in txLog() local
1386 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate); in txLog()
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()
1446 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1450 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1472 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); 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()
1509 lrd->type = cpu_to_le16(LOG_UPDATEMAP); 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()
1521 lrd->backchain = 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()
1553 lrd->type = cpu_to_le16(LOG_REDOPAGE); 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()
1613 lrd->type = cpu_to_le16(LOG_REDOPAGE); 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()
1646 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1650 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1669 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); 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()
1736 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1740 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1825 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in xtLog()
1830 lrd->backchain = in xtLog()
1831 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1835 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1836 lrd->backchain = in xtLog()
1837 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1845 lrd->type = cpu_to_le16(LOG_UPDATEMAP); 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()
1946 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1950 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1963 lrd->type = cpu_to_le16(LOG_UPDATEMAP); 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()
1968 lrd->backchain = in xtLog()
1969 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1980 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1981 lrd->log.updatemap.type = in xtLog()
1985 lrd->log.updatemap.nxd = in xtLog()
1991 lrd->backchain = 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
2088 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in mapLog()
2090 pxd = &lrd->log.redopage.pxd; in mapLog()
2092 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2104 lrd->type = cpu_to_le16(LOG_UPDATEMAP); 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()
2127 lrd->type = cpu_to_le16(LOG_UPDATEMAP); 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()
2139 lrd->backchain = in mapLog()
2140 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()