Lines Matching refs:lrd
164 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
166 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
168 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
170 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
179 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
1144 struct lrd *lrd; in txCommit() local
1172 lrd = &cd.lrd; in txCommit()
1173 lrd->logtid = cpu_to_le32(tblk->logtid); in txCommit()
1174 lrd->backchain = 0; in txCommit()
1309 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1310 lrd->length = 0; in txCommit()
1311 lmLog(log, tblk, lrd, NULL); in txCommit()
1387 struct lrd *lrd = &cd->lrd; in txLog() local
1399 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate); in txLog()
1400 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); in txLog()
1401 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); in txLog()
1406 xtLog(log, tblk, lrd, tlck); in txLog()
1410 dtLog(log, tblk, lrd, tlck); in txLog()
1414 diLog(log, tblk, lrd, tlck, cd); in txLog()
1418 mapLog(log, tblk, lrd, tlck); in txLog()
1422 dataLog(log, tblk, lrd, tlck); in txLog()
1438 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in diLog() argument
1449 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1450 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1452 pxd = &lrd->log.redopage.pxd; in diLog()
1459 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1463 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1485 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1493 lrd->log.noredoinoext.iagnum = in diLog()
1495 lrd->log.noredoinoext.inoext_idx = in diLog()
1500 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1522 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in diLog()
1527 lrd->log.updatemap.type = in diLog()
1530 lrd->log.updatemap.type = in diLog()
1532 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1533 lrd->log.updatemap.pxd = pxdlock->pxd; in diLog()
1534 lrd->backchain = in diLog()
1535 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1551 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dataLog() argument
1560 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
1561 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); in dataLog()
1563 pxd = &lrd->log.redopage.pxd; in dataLog()
1566 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dataLog()
1584 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1597 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dtLog() argument
1607 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); in dtLog()
1608 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); in dtLog()
1610 pxd = &lrd->log.redopage.pxd; in dtLog()
1613 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in dtLog()
1626 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1628 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); in dtLog()
1630 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); in dtLog()
1634 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1659 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1663 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1682 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in dtLog()
1685 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in dtLog()
1700 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in xtLog() argument
1717 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); in xtLog()
1718 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); in xtLog()
1720 page_pxd = &lrd->log.redopage.pxd; in xtLog()
1723 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in xtLog()
1726 lrd->log.redopage.type |= in xtLog()
1749 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1753 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1838 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in xtLog()
1843 lrd->backchain = in xtLog()
1844 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1848 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1849 lrd->backchain = in xtLog()
1850 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1858 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1859 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); in xtLog()
1862 lrd->log.updatemap.nxd = in xtLog()
1868 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1960 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1964 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1977 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1978 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in xtLog()
1979 lrd->log.updatemap.nxd = cpu_to_le16(1); in xtLog()
1980 lrd->log.updatemap.pxd = pxdlock->pxd; in xtLog()
1982 lrd->backchain = in xtLog()
1983 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1994 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1995 lrd->log.updatemap.type = in xtLog()
1999 lrd->log.updatemap.nxd = in xtLog()
2005 lrd->backchain = in xtLog()
2006 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2084 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in mapLog() argument
2102 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in mapLog()
2104 pxd = &lrd->log.redopage.pxd; in mapLog()
2106 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2118 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2119 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in mapLog()
2120 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2121 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2122 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2141 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2146 lrd->log.updatemap.type = in mapLog()
2149 lrd->log.updatemap.type = in mapLog()
2151 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2152 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2153 lrd->backchain = in mapLog()
2154 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()