Lines Matching refs:rblock
33 struct xfs_btree_block *rblock, in xfs_bmdr_to_bmbt() argument
43 xfs_btree_init_block_int(mp, rblock, XFS_BUF_DADDR_NULL, in xfs_bmdr_to_bmbt()
46 rblock->bb_level = dblock->bb_level; in xfs_bmdr_to_bmbt()
47 ASSERT(be16_to_cpu(rblock->bb_level) > 0); in xfs_bmdr_to_bmbt()
48 rblock->bb_numrecs = dblock->bb_numrecs; in xfs_bmdr_to_bmbt()
51 tkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); in xfs_bmdr_to_bmbt()
53 tpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); in xfs_bmdr_to_bmbt()
128 struct xfs_btree_block *rblock, in xfs_bmbt_to_bmdr() argument
140 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_CRC_MAGIC)); in xfs_bmbt_to_bmdr()
141 ASSERT(uuid_equal(&rblock->bb_u.l.bb_uuid, in xfs_bmbt_to_bmdr()
143 ASSERT(rblock->bb_u.l.bb_blkno == in xfs_bmbt_to_bmdr()
146 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_MAGIC)); in xfs_bmbt_to_bmdr()
147 ASSERT(rblock->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK)); in xfs_bmbt_to_bmdr()
148 ASSERT(rblock->bb_u.l.bb_rightsib == cpu_to_be64(NULLFSBLOCK)); in xfs_bmbt_to_bmdr()
149 ASSERT(rblock->bb_level != 0); in xfs_bmbt_to_bmdr()
150 dblock->bb_level = rblock->bb_level; in xfs_bmbt_to_bmdr()
151 dblock->bb_numrecs = rblock->bb_numrecs; in xfs_bmbt_to_bmdr()
153 fkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); in xfs_bmbt_to_bmdr()
155 fpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); in xfs_bmbt_to_bmdr()