Lines Matching refs:xb

467 	struct ocfs2_xattr_block *xb =  in ocfs2_validate_xattr_block()  local
479 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &xb->xb_check); in ocfs2_validate_xattr_block()
487 if (!OCFS2_IS_VALID_XATTR_BLOCK(xb)) { in ocfs2_validate_xattr_block()
491 xb->xb_signature); in ocfs2_validate_xattr_block()
494 if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) { in ocfs2_validate_xattr_block()
498 (unsigned long long)le64_to_cpu(xb->xb_blkno)); in ocfs2_validate_xattr_block()
501 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
505 le32_to_cpu(xb->xb_fs_generation)); in ocfs2_validate_xattr_block()
993 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_list() local
1006 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_list()
1007 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1008 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list()
1213 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_get() local
1237 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data; in ocfs2_xattr_block_get()
1248 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
2293 struct ocfs2_xattr_block *xb = in ocfs2_init_xattr_block_xa_loc() local
2296 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2301 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2457 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_remove() local
2468 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_remove()
2469 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2470 struct ocfs2_xattr_header *header = &(xb->xb_attrs.xb_header); in ocfs2_xattr_block_remove()
2490 struct ocfs2_xattr_block *xb; in ocfs2_xattr_free_block() local
2509 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_free_block()
2510 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2511 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2512 if (xb->xb_suballoc_loc) in ocfs2_xattr_free_block()
2513 bg_blkno = le64_to_cpu(xb->xb_suballoc_loc); in ocfs2_xattr_free_block()
2519 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2822 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_find() local
2836 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_find()
2838 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2839 xs->header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_find()
3049 struct ocfs2_xattr_block *xb = NULL; in ocfs2_calc_xattr_set_need() local
3087 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3094 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3193 xb = (struct ocfs2_xattr_block *)bh->b_data; in ocfs2_calc_xattr_set_need()
3195 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3204 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3206 &xb->xb_attrs.xb_root.xt_list; in ocfs2_calc_xattr_set_need()
3932 struct ocfs2_xattr_block *xb = in ocfs2_xattr_index_block_find() local
3934 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_xattr_index_block_find()
4088 struct ocfs2_xattr_block *xb = in ocfs2_iterate_xattr_index_block() local
4090 struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list; in ocfs2_iterate_xattr_index_block()
4194 struct ocfs2_xattr_block *xb = in ocfs2_cp_xattr_block_to_bucket() local
4196 struct ocfs2_xattr_header *xb_xh = &xb->xb_attrs.xb_header; in ocfs2_cp_xattr_block_to_bucket()
4284 struct ocfs2_xattr_block *xb = in ocfs2_xattr_create_index_block() local
4287 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4344 memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - in ocfs2_xattr_create_index_block()
4347 xr = &xb->xb_attrs.xb_root; in ocfs2_xattr_create_index_block()
4358 xb->xb_flags = cpu_to_le16(xb_flags | OCFS2_XATTR_INDEXED); in ocfs2_xattr_create_index_block()
5276 struct ocfs2_xattr_block *xb = in ocfs2_add_new_xattr_bucket() local
5278 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_add_new_xattr_bucket()
5430 struct ocfs2_xattr_block *xb = in ocfs2_rm_xattr_cluster() local
5491 le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len); in ocfs2_rm_xattr_cluster()
5771 struct ocfs2_xattr_block *xb; in ocfs2_prepare_refcount_xattr() local
5793 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5799 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
6112 struct ocfs2_xattr_block *xb = in ocfs2_xattr_block_attach_refcount() local
6115 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6116 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_attach_refcount()
6585 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_block() local
6587 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header; in ocfs2_reflink_xattr_block()
7088 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_in_block() local
7092 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()