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,
1149 struct lrd *lrd; in txCommit() local
1177 lrd = &cd.lrd; in txCommit()
1178 lrd->logtid = cpu_to_le32(tblk->logtid); in txCommit()
1179 lrd->backchain = 0; in txCommit()
1314 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1315 lrd->length = 0; in txCommit()
1316 lmLog(log, tblk, lrd, NULL); in txCommit()
1392 struct lrd *lrd = &cd->lrd; in txLog() local
1404 lrd->aggregate = cpu_to_le32(JFS_SBI(ip->i_sb)->aggregate); in txLog()
1405 lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); in txLog()
1406 lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); in txLog()
1411 xtLog(log, tblk, lrd, tlck); in txLog()
1415 dtLog(log, tblk, lrd, tlck); in txLog()
1419 diLog(log, tblk, lrd, tlck, cd); in txLog()
1423 mapLog(log, tblk, lrd, tlck); in txLog()
1427 dataLog(log, tblk, lrd, tlck); in txLog()
1443 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in diLog() argument
1454 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1455 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1457 pxd = &lrd->log.redopage.pxd; in diLog()
1464 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1468 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1490 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1498 lrd->log.noredoinoext.iagnum = in diLog()
1500 lrd->log.noredoinoext.inoext_idx = in diLog()
1505 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1527 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in diLog()
1532 lrd->log.updatemap.type = in diLog()
1535 lrd->log.updatemap.type = in diLog()
1537 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1538 lrd->log.updatemap.pxd = pxdlock->pxd; in diLog()
1539 lrd->backchain = in diLog()
1540 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in diLog()
1556 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dataLog() argument
1565 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
1566 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); in dataLog()
1568 pxd = &lrd->log.redopage.pxd; in dataLog()
1571 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dataLog()
1589 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1602 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in dtLog() argument
1612 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); in dtLog()
1613 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); in dtLog()
1615 pxd = &lrd->log.redopage.pxd; in dtLog()
1618 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in dtLog()
1631 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1633 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); in dtLog()
1635 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); in dtLog()
1639 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1664 lrd->type = cpu_to_le16(LOG_REDOPAGE); in dtLog()
1668 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1687 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in dtLog()
1690 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in dtLog()
1705 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in xtLog() argument
1722 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); in xtLog()
1723 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); in xtLog()
1725 page_pxd = &lrd->log.redopage.pxd; in xtLog()
1728 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); in xtLog()
1731 lrd->log.redopage.type |= in xtLog()
1754 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1758 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1843 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in xtLog()
1848 lrd->backchain = in xtLog()
1849 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1853 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1854 lrd->backchain = in xtLog()
1855 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1863 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1864 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); in xtLog()
1867 lrd->log.updatemap.nxd = in xtLog()
1873 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1964 lrd->type = cpu_to_le16(LOG_REDOPAGE); in xtLog()
1968 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1981 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1982 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in xtLog()
1983 lrd->log.updatemap.nxd = cpu_to_le16(1); in xtLog()
1984 lrd->log.updatemap.pxd = pxdlock->pxd; in xtLog()
1986 lrd->backchain = in xtLog()
1987 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in xtLog()
1998 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in xtLog()
1999 lrd->log.updatemap.type = in xtLog()
2003 lrd->log.updatemap.nxd = in xtLog()
2009 lrd->backchain = in xtLog()
2010 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2088 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, in mapLog() argument
2106 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); in mapLog()
2108 pxd = &lrd->log.redopage.pxd; in mapLog()
2110 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2122 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2123 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); in mapLog()
2124 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2125 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2126 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()
2145 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in mapLog()
2150 lrd->log.updatemap.type = in mapLog()
2153 lrd->log.updatemap.type = in mapLog()
2155 lrd->log.updatemap.nxd = cpu_to_le16(1); in mapLog()
2156 lrd->log.updatemap.pxd = pxdlock->pxd; in mapLog()
2157 lrd->backchain = in mapLog()
2158 cpu_to_le32(lmLog(log, tblk, lrd, NULL)); in mapLog()