Lines Matching refs:rblock
36 struct xfs_btree_block *rblock, in xfs_bmdr_to_bmbt() argument
46 xfs_btree_init_block_int(mp, rblock, XFS_BUF_DADDR_NULL, in xfs_bmdr_to_bmbt()
49 rblock->bb_level = dblock->bb_level; in xfs_bmdr_to_bmbt()
50 ASSERT(be16_to_cpu(rblock->bb_level) > 0); in xfs_bmdr_to_bmbt()
51 rblock->bb_numrecs = dblock->bb_numrecs; in xfs_bmdr_to_bmbt()
54 tkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); in xfs_bmdr_to_bmbt()
56 tpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); in xfs_bmdr_to_bmbt()
131 struct xfs_btree_block *rblock, in xfs_bmbt_to_bmdr() argument
143 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_CRC_MAGIC)); in xfs_bmbt_to_bmdr()
144 ASSERT(uuid_equal(&rblock->bb_u.l.bb_uuid, in xfs_bmbt_to_bmdr()
146 ASSERT(rblock->bb_u.l.bb_blkno == in xfs_bmbt_to_bmdr()
149 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_MAGIC)); in xfs_bmbt_to_bmdr()
150 ASSERT(rblock->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK)); in xfs_bmbt_to_bmdr()
151 ASSERT(rblock->bb_u.l.bb_rightsib == cpu_to_be64(NULLFSBLOCK)); in xfs_bmbt_to_bmdr()
152 ASSERT(rblock->bb_level != 0); in xfs_bmbt_to_bmdr()
153 dblock->bb_level = rblock->bb_level; in xfs_bmbt_to_bmdr()
154 dblock->bb_numrecs = rblock->bb_numrecs; in xfs_bmbt_to_bmdr()
156 fkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); in xfs_bmbt_to_bmdr()
158 fpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); in xfs_bmbt_to_bmdr()