Lines Matching refs:bb_u

71 		if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid))  in __xfs_btree_check_lblock()
73 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock()
76 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock()
87 if (block->bb_u.l.bb_leftsib != cpu_to_be64(NULLFSBLOCK) && in __xfs_btree_check_lblock()
88 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_leftsib), in __xfs_btree_check_lblock()
91 if (block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK) && in __xfs_btree_check_lblock()
92 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_rightsib), in __xfs_btree_check_lblock()
137 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_sblock()
139 if (block->bb_u.s.bb_blkno != in __xfs_btree_check_sblock()
151 if (block->bb_u.s.bb_leftsib != cpu_to_be32(NULLAGBLOCK) && in __xfs_btree_check_sblock()
152 !xfs_btree_check_sptr(cur, be32_to_cpu(block->bb_u.s.bb_leftsib), in __xfs_btree_check_sblock()
155 if (block->bb_u.s.bb_rightsib != cpu_to_be32(NULLAGBLOCK) && in __xfs_btree_check_sblock()
156 !xfs_btree_check_sptr(cur, be32_to_cpu(block->bb_u.s.bb_rightsib), in __xfs_btree_check_sblock()
282 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_lblock_calc_crc()
294 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.l.bb_lsn))) in xfs_btree_lblock_verify_crc()
320 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_sblock_calc_crc()
332 if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.s.bb_lsn))) in xfs_btree_sblock_verify_crc()
738 return block->bb_u.l.bb_rightsib == cpu_to_be64(NULLFSBLOCK); in xfs_btree_islastblock()
740 return block->bb_u.s.bb_rightsib == cpu_to_be32(NULLAGBLOCK); in xfs_btree_islastblock()
917 xfs_fsblock_t left = be64_to_cpu(block->bb_u.l.bb_leftsib); in xfs_btree_readahead_lblock()
918 xfs_fsblock_t right = be64_to_cpu(block->bb_u.l.bb_rightsib); in xfs_btree_readahead_lblock()
942 xfs_agblock_t left = be32_to_cpu(block->bb_u.s.bb_leftsib); in xfs_btree_readahead_sblock()
943 xfs_agblock_t right = be32_to_cpu(block->bb_u.s.bb_rightsib); in xfs_btree_readahead_sblock()
1057 if (b->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK)) in xfs_btree_setbuf()
1059 if (b->bb_u.l.bb_rightsib == cpu_to_be64(NULLFSBLOCK)) in xfs_btree_setbuf()
1062 if (b->bb_u.s.bb_leftsib == cpu_to_be32(NULLAGBLOCK)) in xfs_btree_setbuf()
1064 if (b->bb_u.s.bb_rightsib == cpu_to_be32(NULLAGBLOCK)) in xfs_btree_setbuf()
1105 ptr->l = block->bb_u.l.bb_rightsib; in xfs_btree_get_sibling()
1107 ptr->l = block->bb_u.l.bb_leftsib; in xfs_btree_get_sibling()
1110 ptr->s = block->bb_u.s.bb_rightsib; in xfs_btree_get_sibling()
1112 ptr->s = block->bb_u.s.bb_leftsib; in xfs_btree_get_sibling()
1127 block->bb_u.l.bb_rightsib = ptr->l; in xfs_btree_set_sibling()
1129 block->bb_u.l.bb_leftsib = ptr->l; in xfs_btree_set_sibling()
1132 block->bb_u.s.bb_rightsib = ptr->s; in xfs_btree_set_sibling()
1134 block->bb_u.s.bb_leftsib = ptr->s; in xfs_btree_set_sibling()
1157 buf->bb_u.l.bb_leftsib = cpu_to_be64(NULLFSBLOCK); in xfs_btree_init_block_int()
1158 buf->bb_u.l.bb_rightsib = cpu_to_be64(NULLFSBLOCK); in xfs_btree_init_block_int()
1160 buf->bb_u.l.bb_blkno = cpu_to_be64(blkno); in xfs_btree_init_block_int()
1161 buf->bb_u.l.bb_owner = cpu_to_be64(owner); in xfs_btree_init_block_int()
1162 uuid_copy(&buf->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid); in xfs_btree_init_block_int()
1163 buf->bb_u.l.bb_pad = 0; in xfs_btree_init_block_int()
1164 buf->bb_u.l.bb_lsn = 0; in xfs_btree_init_block_int()
1170 buf->bb_u.s.bb_leftsib = cpu_to_be32(NULLAGBLOCK); in xfs_btree_init_block_int()
1171 buf->bb_u.s.bb_rightsib = cpu_to_be32(NULLAGBLOCK); in xfs_btree_init_block_int()
1173 buf->bb_u.s.bb_blkno = cpu_to_be64(blkno); in xfs_btree_init_block_int()
1174 buf->bb_u.s.bb_owner = cpu_to_be32(__owner); in xfs_btree_init_block_int()
1175 uuid_copy(&buf->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid); in xfs_btree_init_block_int()
1176 buf->bb_u.s.bb_lsn = 0; in xfs_btree_init_block_int()
1529 offsetof(struct xfs_btree_block, bb_u.s.bb_leftsib), in xfs_btree_log_block()
1530 offsetof(struct xfs_btree_block, bb_u.s.bb_rightsib), in xfs_btree_log_block()
1531 offsetof(struct xfs_btree_block, bb_u.s.bb_blkno), in xfs_btree_log_block()
1532 offsetof(struct xfs_btree_block, bb_u.s.bb_lsn), in xfs_btree_log_block()
1533 offsetof(struct xfs_btree_block, bb_u.s.bb_uuid), in xfs_btree_log_block()
1534 offsetof(struct xfs_btree_block, bb_u.s.bb_owner), in xfs_btree_log_block()
1535 offsetof(struct xfs_btree_block, bb_u.s.bb_crc), in xfs_btree_log_block()
1542 offsetof(struct xfs_btree_block, bb_u.l.bb_leftsib), in xfs_btree_log_block()
1543 offsetof(struct xfs_btree_block, bb_u.l.bb_rightsib), in xfs_btree_log_block()
1544 offsetof(struct xfs_btree_block, bb_u.l.bb_blkno), in xfs_btree_log_block()
1545 offsetof(struct xfs_btree_block, bb_u.l.bb_lsn), in xfs_btree_log_block()
1546 offsetof(struct xfs_btree_block, bb_u.l.bb_uuid), in xfs_btree_log_block()
1547 offsetof(struct xfs_btree_block, bb_u.l.bb_owner), in xfs_btree_log_block()
1548 offsetof(struct xfs_btree_block, bb_u.l.bb_crc), in xfs_btree_log_block()
1549 offsetof(struct xfs_btree_block, bb_u.l.bb_pad), in xfs_btree_log_block()
1817 be64_to_cpu((*blkp)->bb_u.l.bb_owner) != in xfs_btree_lookup_get_block()
2975 cblock->bb_u.l.bb_blkno = cpu_to_be64(cbp->b_bn); in xfs_btree_new_iroot()
2977 cblock->bb_u.s.bb_blkno = cpu_to_be64(cbp->b_bn); in xfs_btree_new_iroot()
4381 if (block->bb_u.l.bb_owner == cpu_to_be64(bbcoi->new_owner)) in xfs_btree_block_change_owner()
4383 block->bb_u.l.bb_owner = cpu_to_be64(bbcoi->new_owner); in xfs_btree_block_change_owner()
4385 if (block->bb_u.s.bb_owner == cpu_to_be32(bbcoi->new_owner)) in xfs_btree_block_change_owner()
4387 block->bb_u.s.bb_owner = cpu_to_be32(bbcoi->new_owner); in xfs_btree_block_change_owner()
4441 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_btree_lblock_v5hdr_verify()
4443 if (block->bb_u.l.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_btree_lblock_v5hdr_verify()
4446 be64_to_cpu(block->bb_u.l.bb_owner) != owner) in xfs_btree_lblock_v5hdr_verify()
4465 if (block->bb_u.l.bb_leftsib != cpu_to_be64(NULLFSBLOCK) && in xfs_btree_lblock_verify()
4466 !xfs_verify_fsbno(mp, be64_to_cpu(block->bb_u.l.bb_leftsib))) in xfs_btree_lblock_verify()
4468 if (block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK) && in xfs_btree_lblock_verify()
4469 !xfs_verify_fsbno(mp, be64_to_cpu(block->bb_u.l.bb_rightsib))) in xfs_btree_lblock_verify()
4493 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_btree_sblock_v5hdr_verify()
4495 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_btree_sblock_v5hdr_verify()
4497 if (pag && be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_btree_sblock_v5hdr_verify()
4523 if (block->bb_u.s.bb_leftsib != cpu_to_be32(NULLAGBLOCK) && in xfs_btree_sblock_verify()
4524 !xfs_verify_agbno(mp, agno, be32_to_cpu(block->bb_u.s.bb_leftsib))) in xfs_btree_sblock_verify()
4526 if (block->bb_u.s.bb_rightsib != cpu_to_be32(NULLAGBLOCK) && in xfs_btree_sblock_verify()
4527 !xfs_verify_agbno(mp, agno, be32_to_cpu(block->bb_u.s.bb_rightsib))) in xfs_btree_sblock_verify()
4944 return block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK); in xfs_btree_has_more_records()
4946 return block->bb_u.s.bb_rightsib != cpu_to_be32(NULLAGBLOCK); in xfs_btree_has_more_records()