Lines Matching refs:xb

481 	struct ocfs2_xattr_block *xb =  in ocfs2_validate_xattr_block()  local
493 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &xb->xb_check); in ocfs2_validate_xattr_block()
501 if (!OCFS2_IS_VALID_XATTR_BLOCK(xb)) { in ocfs2_validate_xattr_block()
505 xb->xb_signature); in ocfs2_validate_xattr_block()
508 if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) { in ocfs2_validate_xattr_block()
512 (unsigned long long)le64_to_cpu(xb->xb_blkno)); in ocfs2_validate_xattr_block()
515 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
519 le32_to_cpu(xb->xb_fs_generation)); in ocfs2_validate_xattr_block()
983 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_list() local
996 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_list()
997 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
998 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list()
1194 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_get() local
1218 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data; in ocfs2_xattr_block_get()
1229 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
2274 struct ocfs2_xattr_block *xb = in ocfs2_init_xattr_block_xa_loc() local
2277 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2282 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2438 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_remove() local
2449 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_remove()
2450 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2451 struct ocfs2_xattr_header *header = &(xb->xb_attrs.xb_header); in ocfs2_xattr_block_remove()
2471 struct ocfs2_xattr_block *xb; in ocfs2_xattr_free_block() local
2490 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_free_block()
2491 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2492 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2493 if (xb->xb_suballoc_loc) in ocfs2_xattr_free_block()
2494 bg_blkno = le64_to_cpu(xb->xb_suballoc_loc); in ocfs2_xattr_free_block()
2500 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2803 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_find() local
2817 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_find()
2819 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2820 xs->header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_find()
3030 struct ocfs2_xattr_block *xb = NULL; in ocfs2_calc_xattr_set_need() local
3068 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3075 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3174 xb = (struct ocfs2_xattr_block *)bh->b_data; in ocfs2_calc_xattr_set_need()
3176 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3185 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3187 &xb->xb_attrs.xb_root.xt_list; in ocfs2_calc_xattr_set_need()
3914 struct ocfs2_xattr_block *xb = in ocfs2_xattr_index_block_find() local
3916 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_xattr_index_block_find()
4072 struct ocfs2_xattr_block *xb = in ocfs2_iterate_xattr_index_block() local
4074 struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list; in ocfs2_iterate_xattr_index_block()
4178 struct ocfs2_xattr_block *xb = in ocfs2_cp_xattr_block_to_bucket() local
4180 struct ocfs2_xattr_header *xb_xh = &xb->xb_attrs.xb_header; in ocfs2_cp_xattr_block_to_bucket()
4268 struct ocfs2_xattr_block *xb = in ocfs2_xattr_create_index_block() local
4271 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4328 memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - in ocfs2_xattr_create_index_block()
4331 xr = &xb->xb_attrs.xb_root; in ocfs2_xattr_create_index_block()
4342 xb->xb_flags = cpu_to_le16(xb_flags | OCFS2_XATTR_INDEXED); in ocfs2_xattr_create_index_block()
5260 struct ocfs2_xattr_block *xb = in ocfs2_add_new_xattr_bucket() local
5262 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_add_new_xattr_bucket()
5414 struct ocfs2_xattr_block *xb = in ocfs2_rm_xattr_cluster() local
5475 le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len); in ocfs2_rm_xattr_cluster()
5755 struct ocfs2_xattr_block *xb; in ocfs2_prepare_refcount_xattr() local
5777 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5783 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
6096 struct ocfs2_xattr_block *xb = in ocfs2_xattr_block_attach_refcount() local
6099 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6100 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_attach_refcount()
6578 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_block() local
6580 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header; in ocfs2_reflink_xattr_block()
7081 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_in_block() local
7085 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()