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