Lines Matching refs:lrd

151 static void diLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd,
153 static void 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;
1300 lrd->type = cpu_to_le16(LOG_COMMIT);
1301 lrd->length = 0;
1302 lmLog(log, tblk, lrd, NULL);
1377 struct lrd *lrd = &cd->lrd;
1387 /* initialize lrd common */
1389 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate);
1390 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset);
1391 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino);
1396 xtLog(log, tblk, lrd, tlck);
1400 dtLog(log, tblk, lrd, tlck);
1404 diLog(log, tblk, lrd, tlck, cd);
1408 mapLog(log, tblk, lrd, tlck);
1412 dataLog(log, tblk, lrd, tlck);
1428 static void diLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd,
1438 lrd->log.redopage.type = cpu_to_le16(LOG_INODE);
1439 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE);
1441 pxd = &lrd->log.redopage.pxd;
1448 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1452 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1474 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT);
1482 lrd->log.noredoinoext.iagnum =
1484 lrd->log.noredoinoext.inoext_idx =
1489 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL));
1506 static void dataLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd,
1515 lrd->log.redopage.type = cpu_to_le16(LOG_DATA);
1516 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE);
1518 pxd = &lrd->log.redopage.pxd;
1521 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1539 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1552 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1562 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE);
1563 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE);
1565 pxd = &lrd->log.redopage.pxd;
1568 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT);
1581 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1583 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND);
1585 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW);
1589 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1614 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1618 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1637 lrd->type = cpu_to_le16(LOG_NOREDOPAGE);
1640 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL));
1655 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1672 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE);
1673 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE);
1675 page_pxd = &lrd->log.redopage.pxd;
1678 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT);
1681 lrd->log.redopage.type |=
1704 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1708 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1793 lrd->type = cpu_to_le16(LOG_NOREDOPAGE);
1798 lrd->backchain =
1799 cpu_to_le32(lmLog(log, tblk, lrd, NULL));
1803 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1804 lrd->backchain =
1805 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1813 lrd->type = cpu_to_le16(LOG_UPDATEMAP);
1814 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST);
1817 lrd->log.updatemap.nxd =
1823 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1914 lrd->type = cpu_to_le16(LOG_REDOPAGE);
1918 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1931 lrd->type = cpu_to_le16(LOG_UPDATEMAP);
1932 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD);
1933 lrd->log.updatemap.nxd = cpu_to_le16(1);
1934 lrd->log.updatemap.pxd = pxdlock->pxd;
1936 lrd->backchain =
1937 cpu_to_le32(lmLog(log, tblk, lrd, NULL));
1948 lrd->type = cpu_to_le16(LOG_UPDATEMAP);
1949 lrd->log.updatemap.type =
1953 lrd->log.updatemap.nxd =
1959 lrd->backchain =
1960 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
2038 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
2056 lrd->type = cpu_to_le16(LOG_NOREDOPAGE);
2058 pxd = &lrd->log.redopage.pxd;
2060 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL));
2072 lrd->type = cpu_to_le16(LOG_UPDATEMAP);
2073 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD);
2074 lrd->log.updatemap.nxd = cpu_to_le16(1);
2075 lrd->log.updatemap.pxd = pxdlock->pxd;
2076 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL));
2095 lrd->type = cpu_to_le16(LOG_UPDATEMAP);
2100 lrd->log.updatemap.type =
2103 lrd->log.updatemap.type =
2105 lrd->log.updatemap.nxd = cpu_to_le16(1);
2106 lrd->log.updatemap.pxd = pxdlock->pxd;
2107 lrd->backchain =
2108 cpu_to_le32(lmLog(log, tblk, lrd, NULL));