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,
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()
1295 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1296 lrd->length = 0; in txCommit()
1297 lmLog(log, tblk, lrd, NULL); in txCommit()
1372 struct lrd *lrd = &cd->lrd; in txLog() local
1384 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate); in txLog()
1385 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); in txLog()
1386 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); in txLog()
1391 xtLog(log, tblk, lrd, tlck); in txLog()
1395 dtLog(log, tblk, lrd, tlck); in txLog()
1399 diLog(log, tblk, lrd, tlck, cd); in txLog()
1403 mapLog(log, tblk, lrd, tlck); in txLog()
1407 dataLog(log, tblk, lrd, tlck); in txLog()
1423 static void diLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd, in diLog() argument
1433 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1434 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1436 pxd = &lrd->log.redopage.pxd; in diLog()
1443 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1447 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1469 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1477 lrd->log.noredoinoext.iagnum = in diLog()
1479 lrd->log.noredoinoext.inoext_idx = in diLog()
1484 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1501 static void dataLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd, in dataLog() argument
1510 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
1511 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); in dataLog()
1513 pxd = &lrd->log.redopage.pxd; in dataLog()
1516 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dataLog()
1534 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1547 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dtLog() argument
1557 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); in dtLog()
1558 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); in dtLog()
1560 pxd = &lrd->log.redopage.pxd; in dtLog()
1563 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in dtLog()
1576 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1578 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); in dtLog()
1580 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); in dtLog()
1584 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1609 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1613 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1632 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in dtLog()
1635 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in dtLog()
1650 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in xtLog() argument
1667 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); in xtLog()
1668 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); in xtLog()
1670 page_pxd = &lrd->log.redopage.pxd; in xtLog()
1673 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in xtLog()
1676 lrd->log.redopage.type |= in xtLog()
1699 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1703 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1788 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in xtLog()
1793 lrd->backchain = in xtLog()
1794 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1798 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1799 lrd->backchain = in xtLog()
1800 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1808 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1809 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); in xtLog()
1812 lrd->log.updatemap.nxd = in xtLog()
1818 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1909 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1913 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1926 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1927 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in xtLog()
1928 lrd->log.updatemap.nxd = cpu_to_le16(1); in xtLog()
1929 lrd->log.updatemap.pxd = pxdlock->pxd; in xtLog()
1931 lrd->backchain = in xtLog()
1932 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1943 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1944 lrd->log.updatemap.type = in xtLog()
1948 lrd->log.updatemap.nxd = in xtLog()
1954 lrd->backchain = in xtLog()
1955 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2033 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in mapLog() argument
2051 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in mapLog()
2053 pxd = &lrd->log.redopage.pxd; in mapLog()
2055 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2067 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2068 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in mapLog()
2069 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2070 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2071 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2090 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2095 lrd->log.updatemap.type = in mapLog()
2098 lrd->log.updatemap.type = in mapLog()
2100 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2101 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2102 lrd->backchain = in mapLog()
2103 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()