Lines Matching refs:bb_u
128 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock_hdr()
130 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock_hdr()
133 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock_hdr()
172 if (block->bb_u.l.bb_leftsib != cpu_to_be64(NULLFSBLOCK)) in __xfs_btree_check_fsblock()
174 if (block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK)) in __xfs_btree_check_fsblock()
181 block->bb_u.l.bb_leftsib); in __xfs_btree_check_fsblock()
184 block->bb_u.l.bb_rightsib); in __xfs_btree_check_fsblock()
209 block->bb_u.l.bb_leftsib); in __xfs_btree_check_memblock()
212 block->bb_u.l.bb_rightsib); in __xfs_btree_check_memblock()
233 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_agblock()
235 if (block->bb_u.s.bb_blkno != cpu_to_be64(xfs_buf_daddr(bp))) in __xfs_btree_check_agblock()
249 block->bb_u.s.bb_leftsib); in __xfs_btree_check_agblock()
252 block->bb_u.s.bb_rightsib); in __xfs_btree_check_agblock()
409 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_fsblock_calc_crc()
421 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.l.bb_lsn))) in xfs_btree_fsblock_verify_crc()
447 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_agblock_calc_crc()
459 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.s.bb_lsn))) in xfs_btree_agblock_verify_crc()
968 xfs_fsblock_t left = be64_to_cpu(block->bb_u.l.bb_leftsib); in xfs_btree_readahead_fsblock()
969 xfs_fsblock_t right = be64_to_cpu(block->bb_u.l.bb_rightsib); in xfs_btree_readahead_fsblock()
994 xfbno_t left = be64_to_cpu(block->bb_u.l.bb_leftsib); in xfs_btree_readahead_memblock()
995 xfbno_t right = be64_to_cpu(block->bb_u.l.bb_rightsib); in xfs_btree_readahead_memblock()
1021 xfs_agblock_t left = be32_to_cpu(block->bb_u.s.bb_leftsib); in xfs_btree_readahead_agblock()
1022 xfs_agblock_t right = be32_to_cpu(block->bb_u.s.bb_rightsib); in xfs_btree_readahead_agblock()
1147 if (b->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK)) in xfs_btree_setbuf()
1149 if (b->bb_u.l.bb_rightsib == cpu_to_be64(NULLFSBLOCK)) in xfs_btree_setbuf()
1152 if (b->bb_u.s.bb_leftsib == cpu_to_be32(NULLAGBLOCK)) in xfs_btree_setbuf()
1154 if (b->bb_u.s.bb_rightsib == cpu_to_be32(NULLAGBLOCK)) in xfs_btree_setbuf()
1206 ptr->l = block->bb_u.l.bb_rightsib; in xfs_btree_get_sibling()
1208 ptr->l = block->bb_u.l.bb_leftsib; in xfs_btree_get_sibling()
1211 ptr->s = block->bb_u.s.bb_rightsib; in xfs_btree_get_sibling()
1213 ptr->s = block->bb_u.s.bb_leftsib; in xfs_btree_get_sibling()
1228 block->bb_u.l.bb_rightsib = ptr->l; in xfs_btree_set_sibling()
1230 block->bb_u.l.bb_leftsib = ptr->l; in xfs_btree_set_sibling()
1233 block->bb_u.s.bb_rightsib = ptr->s; in xfs_btree_set_sibling()
1235 block->bb_u.s.bb_leftsib = ptr->s; in xfs_btree_set_sibling()
1257 buf->bb_u.l.bb_leftsib = cpu_to_be64(NULLFSBLOCK); in __xfs_btree_init_block()
1258 buf->bb_u.l.bb_rightsib = cpu_to_be64(NULLFSBLOCK); in __xfs_btree_init_block()
1260 buf->bb_u.l.bb_blkno = cpu_to_be64(blkno); in __xfs_btree_init_block()
1261 buf->bb_u.l.bb_owner = cpu_to_be64(owner); in __xfs_btree_init_block()
1262 uuid_copy(&buf->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid); in __xfs_btree_init_block()
1263 buf->bb_u.l.bb_pad = 0; in __xfs_btree_init_block()
1264 buf->bb_u.l.bb_lsn = 0; in __xfs_btree_init_block()
1267 buf->bb_u.s.bb_leftsib = cpu_to_be32(NULLAGBLOCK); in __xfs_btree_init_block()
1268 buf->bb_u.s.bb_rightsib = cpu_to_be32(NULLAGBLOCK); in __xfs_btree_init_block()
1270 buf->bb_u.s.bb_blkno = cpu_to_be64(blkno); in __xfs_btree_init_block()
1272 buf->bb_u.s.bb_owner = cpu_to_be32((__u32)owner); in __xfs_btree_init_block()
1273 uuid_copy(&buf->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid); in __xfs_btree_init_block()
1274 buf->bb_u.s.bb_lsn = 0; in __xfs_btree_init_block()
1601 offsetof(struct xfs_btree_block, bb_u.s.bb_leftsib), in xfs_btree_log_block()
1602 offsetof(struct xfs_btree_block, bb_u.s.bb_rightsib), in xfs_btree_log_block()
1603 offsetof(struct xfs_btree_block, bb_u.s.bb_blkno), in xfs_btree_log_block()
1604 offsetof(struct xfs_btree_block, bb_u.s.bb_lsn), in xfs_btree_log_block()
1605 offsetof(struct xfs_btree_block, bb_u.s.bb_uuid), in xfs_btree_log_block()
1606 offsetof(struct xfs_btree_block, bb_u.s.bb_owner), in xfs_btree_log_block()
1607 offsetof(struct xfs_btree_block, bb_u.s.bb_crc), in xfs_btree_log_block()
1614 offsetof(struct xfs_btree_block, bb_u.l.bb_leftsib), in xfs_btree_log_block()
1615 offsetof(struct xfs_btree_block, bb_u.l.bb_rightsib), in xfs_btree_log_block()
1616 offsetof(struct xfs_btree_block, bb_u.l.bb_blkno), in xfs_btree_log_block()
1617 offsetof(struct xfs_btree_block, bb_u.l.bb_lsn), in xfs_btree_log_block()
1618 offsetof(struct xfs_btree_block, bb_u.l.bb_uuid), in xfs_btree_log_block()
1619 offsetof(struct xfs_btree_block, bb_u.l.bb_owner), in xfs_btree_log_block()
1620 offsetof(struct xfs_btree_block, bb_u.l.bb_crc), in xfs_btree_log_block()
1621 offsetof(struct xfs_btree_block, bb_u.l.bb_pad), in xfs_btree_log_block()
1867 if (be64_to_cpu(block->bb_u.l.bb_owner) != owner) in xfs_btree_check_block_owner()
1870 if (be32_to_cpu(block->bb_u.s.bb_owner) != owner) in xfs_btree_check_block_owner()
3146 cblock->bb_u.l.bb_blkno = bno; in xfs_btree_new_iroot()
3148 cblock->bb_u.s.bb_blkno = bno; in xfs_btree_new_iroot()
4601 if (block->bb_u.l.bb_owner == cpu_to_be64(bbcoi->new_owner)) in xfs_btree_block_change_owner()
4603 block->bb_u.l.bb_owner = cpu_to_be64(bbcoi->new_owner); in xfs_btree_block_change_owner()
4605 if (block->bb_u.s.bb_owner == cpu_to_be32(bbcoi->new_owner)) in xfs_btree_block_change_owner()
4607 block->bb_u.s.bb_owner = cpu_to_be32(bbcoi->new_owner); in xfs_btree_block_change_owner()
4661 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_btree_fsblock_v5hdr_verify()
4663 if (block->bb_u.l.bb_blkno != cpu_to_be64(xfs_buf_daddr(bp))) in xfs_btree_fsblock_v5hdr_verify()
4666 be64_to_cpu(block->bb_u.l.bb_owner) != owner) in xfs_btree_fsblock_v5hdr_verify()
4691 block->bb_u.l.bb_leftsib); in xfs_btree_fsblock_verify()
4694 block->bb_u.l.bb_rightsib); in xfs_btree_fsblock_verify()
4718 block->bb_u.l.bb_leftsib); in xfs_btree_memblock_verify()
4722 block->bb_u.l.bb_rightsib); in xfs_btree_memblock_verify()
4744 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_btree_agblock_v5hdr_verify()
4746 if (block->bb_u.s.bb_blkno != cpu_to_be64(xfs_buf_daddr(bp))) in xfs_btree_agblock_v5hdr_verify()
4748 if (pag && be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_btree_agblock_v5hdr_verify()
4778 block->bb_u.s.bb_leftsib); in xfs_btree_agblock_verify()
4781 block->bb_u.s.bb_rightsib); in xfs_btree_agblock_verify()
5332 return block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK); in xfs_btree_has_more_records()
5334 return block->bb_u.s.bb_rightsib != cpu_to_be32(NULLAGBLOCK); in xfs_btree_has_more_records()