Lines Matching refs:xb
473 struct ocfs2_xattr_block *xb = in ocfs2_validate_xattr_block() local
485 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &xb->xb_check); in ocfs2_validate_xattr_block()
493 if (!OCFS2_IS_VALID_XATTR_BLOCK(xb)) { in ocfs2_validate_xattr_block()
497 xb->xb_signature); in ocfs2_validate_xattr_block()
500 if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) { in ocfs2_validate_xattr_block()
504 (unsigned long long)le64_to_cpu(xb->xb_blkno)); in ocfs2_validate_xattr_block()
507 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
511 le32_to_cpu(xb->xb_fs_generation)); in ocfs2_validate_xattr_block()
999 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_list() local
1012 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_list()
1013 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1014 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list()
1210 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_get() local
1234 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data; in ocfs2_xattr_block_get()
1245 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
2291 struct ocfs2_xattr_block *xb = in ocfs2_init_xattr_block_xa_loc() local
2294 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2299 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2455 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_remove() local
2466 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_remove()
2467 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2468 struct ocfs2_xattr_header *header = &(xb->xb_attrs.xb_header); in ocfs2_xattr_block_remove()
2488 struct ocfs2_xattr_block *xb; in ocfs2_xattr_free_block() local
2507 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_free_block()
2508 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2509 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2510 if (xb->xb_suballoc_loc) in ocfs2_xattr_free_block()
2511 bg_blkno = le64_to_cpu(xb->xb_suballoc_loc); in ocfs2_xattr_free_block()
2517 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2820 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_find() local
2834 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_find()
2836 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2837 xs->header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_find()
3047 struct ocfs2_xattr_block *xb = NULL; in ocfs2_calc_xattr_set_need() local
3085 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3092 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3191 xb = (struct ocfs2_xattr_block *)bh->b_data; in ocfs2_calc_xattr_set_need()
3193 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3202 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3204 &xb->xb_attrs.xb_root.xt_list; in ocfs2_calc_xattr_set_need()
3930 struct ocfs2_xattr_block *xb = in ocfs2_xattr_index_block_find() local
3932 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_xattr_index_block_find()
4086 struct ocfs2_xattr_block *xb = in ocfs2_iterate_xattr_index_block() local
4088 struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list; in ocfs2_iterate_xattr_index_block()
4192 struct ocfs2_xattr_block *xb = in ocfs2_cp_xattr_block_to_bucket() local
4194 struct ocfs2_xattr_header *xb_xh = &xb->xb_attrs.xb_header; in ocfs2_cp_xattr_block_to_bucket()
4282 struct ocfs2_xattr_block *xb = in ocfs2_xattr_create_index_block() local
4285 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4342 memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - in ocfs2_xattr_create_index_block()
4345 xr = &xb->xb_attrs.xb_root; in ocfs2_xattr_create_index_block()
4356 xb->xb_flags = cpu_to_le16(xb_flags | OCFS2_XATTR_INDEXED); in ocfs2_xattr_create_index_block()
5274 struct ocfs2_xattr_block *xb = in ocfs2_add_new_xattr_bucket() local
5276 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_add_new_xattr_bucket()
5428 struct ocfs2_xattr_block *xb = in ocfs2_rm_xattr_cluster() local
5489 le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len); in ocfs2_rm_xattr_cluster()
5769 struct ocfs2_xattr_block *xb; in ocfs2_prepare_refcount_xattr() local
5791 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5797 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
6110 struct ocfs2_xattr_block *xb = in ocfs2_xattr_block_attach_refcount() local
6113 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6114 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_attach_refcount()
6592 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_block() local
6594 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header; in ocfs2_reflink_xattr_block()
7095 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_in_block() local
7099 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()