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,
1136 struct lrd *lrd; in txCommit() local
1164 lrd = &cd.lrd; in txCommit()
1165 lrd->logtid = cpu_to_le32(tblk->logtid); in txCommit()
1166 lrd->backchain = 0; in txCommit()
1301 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1302 lrd->length = 0; in txCommit()
1303 lmLog(log, tblk, lrd, NULL); in txCommit()
1379 struct lrd *lrd = &cd->lrd; in txLog() local
1391 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate); in txLog()
1392 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); in txLog()
1393 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); in txLog()
1398 xtLog(log, tblk, lrd, tlck); in txLog()
1402 dtLog(log, tblk, lrd, tlck); in txLog()
1406 diLog(log, tblk, lrd, tlck, cd); in txLog()
1410 mapLog(log, tblk, lrd, tlck); in txLog()
1414 dataLog(log, tblk, lrd, tlck); in txLog()
1430 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in diLog() argument
1441 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1442 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1444 pxd = &lrd->log.redopage.pxd; in diLog()
1451 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1455 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1477 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1485 lrd->log.noredoinoext.iagnum = in diLog()
1487 lrd->log.noredoinoext.inoext_idx = in diLog()
1492 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1514 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in diLog()
1519 lrd->log.updatemap.type = in diLog()
1522 lrd->log.updatemap.type = in diLog()
1524 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1525 lrd->log.updatemap.pxd = pxdlock->pxd; in diLog()
1526 lrd->backchain = in diLog()
1527 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1543 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dataLog() argument
1552 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
1553 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); in dataLog()
1555 pxd = &lrd->log.redopage.pxd; in dataLog()
1558 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dataLog()
1576 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1589 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dtLog() argument
1599 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); in dtLog()
1600 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); in dtLog()
1602 pxd = &lrd->log.redopage.pxd; in dtLog()
1605 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in dtLog()
1618 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1620 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); in dtLog()
1622 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); in dtLog()
1626 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1651 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1655 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1674 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in dtLog()
1677 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in dtLog()
1692 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in xtLog() argument
1709 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); in xtLog()
1710 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); in xtLog()
1712 page_pxd = &lrd->log.redopage.pxd; in xtLog()
1715 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in xtLog()
1718 lrd->log.redopage.type |= in xtLog()
1741 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1745 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1830 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in xtLog()
1835 lrd->backchain = in xtLog()
1836 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1840 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1841 lrd->backchain = in xtLog()
1842 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1850 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1851 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); in xtLog()
1854 lrd->log.updatemap.nxd = in xtLog()
1860 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1951 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1955 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1968 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1969 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in xtLog()
1970 lrd->log.updatemap.nxd = cpu_to_le16(1); in xtLog()
1971 lrd->log.updatemap.pxd = pxdlock->pxd; in xtLog()
1973 lrd->backchain = in xtLog()
1974 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1985 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1986 lrd->log.updatemap.type = in xtLog()
1990 lrd->log.updatemap.nxd = in xtLog()
1996 lrd->backchain = in xtLog()
1997 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2075 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in mapLog() argument
2093 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in mapLog()
2095 pxd = &lrd->log.redopage.pxd; in mapLog()
2097 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2109 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2110 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in mapLog()
2111 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2112 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2113 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2132 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2137 lrd->log.updatemap.type = in mapLog()
2140 lrd->log.updatemap.type = in mapLog()
2142 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2143 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2144 lrd->backchain = in mapLog()
2145 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()