Lines Matching refs:xb

471 	struct ocfs2_xattr_block *xb =  in ocfs2_validate_xattr_block()  local
483 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &xb->xb_check); in ocfs2_validate_xattr_block()
491 if (!OCFS2_IS_VALID_XATTR_BLOCK(xb)) { in ocfs2_validate_xattr_block()
495 xb->xb_signature); in ocfs2_validate_xattr_block()
498 if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) { in ocfs2_validate_xattr_block()
502 (unsigned long long)le64_to_cpu(xb->xb_blkno)); in ocfs2_validate_xattr_block()
505 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
509 le32_to_cpu(xb->xb_fs_generation)); in ocfs2_validate_xattr_block()
997 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_list() local
1010 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_list()
1011 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1012 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list()
1208 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_get() local
1232 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data; in ocfs2_xattr_block_get()
1243 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
2289 struct ocfs2_xattr_block *xb = in ocfs2_init_xattr_block_xa_loc() local
2292 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2297 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2453 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_remove() local
2464 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_remove()
2465 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2466 struct ocfs2_xattr_header *header = &(xb->xb_attrs.xb_header); in ocfs2_xattr_block_remove()
2486 struct ocfs2_xattr_block *xb; in ocfs2_xattr_free_block() local
2505 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_free_block()
2506 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2507 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2508 if (xb->xb_suballoc_loc) in ocfs2_xattr_free_block()
2509 bg_blkno = le64_to_cpu(xb->xb_suballoc_loc); in ocfs2_xattr_free_block()
2515 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2818 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_find() local
2832 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_find()
2834 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2835 xs->header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_find()
3045 struct ocfs2_xattr_block *xb = NULL; in ocfs2_calc_xattr_set_need() local
3083 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3090 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3189 xb = (struct ocfs2_xattr_block *)bh->b_data; in ocfs2_calc_xattr_set_need()
3191 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3200 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3202 &xb->xb_attrs.xb_root.xt_list; in ocfs2_calc_xattr_set_need()
3928 struct ocfs2_xattr_block *xb = in ocfs2_xattr_index_block_find() local
3930 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_xattr_index_block_find()
4084 struct ocfs2_xattr_block *xb = in ocfs2_iterate_xattr_index_block() local
4086 struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list; in ocfs2_iterate_xattr_index_block()
4190 struct ocfs2_xattr_block *xb = in ocfs2_cp_xattr_block_to_bucket() local
4192 struct ocfs2_xattr_header *xb_xh = &xb->xb_attrs.xb_header; in ocfs2_cp_xattr_block_to_bucket()
4280 struct ocfs2_xattr_block *xb = in ocfs2_xattr_create_index_block() local
4283 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4340 memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - in ocfs2_xattr_create_index_block()
4343 xr = &xb->xb_attrs.xb_root; in ocfs2_xattr_create_index_block()
4354 xb->xb_flags = cpu_to_le16(xb_flags | OCFS2_XATTR_INDEXED); in ocfs2_xattr_create_index_block()
5272 struct ocfs2_xattr_block *xb = in ocfs2_add_new_xattr_bucket() local
5274 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_add_new_xattr_bucket()
5426 struct ocfs2_xattr_block *xb = in ocfs2_rm_xattr_cluster() local
5487 le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len); in ocfs2_rm_xattr_cluster()
5767 struct ocfs2_xattr_block *xb; in ocfs2_prepare_refcount_xattr() local
5789 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5795 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
6108 struct ocfs2_xattr_block *xb = in ocfs2_xattr_block_attach_refcount() local
6111 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6112 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_attach_refcount()
6590 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_block() local
6592 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header; in ocfs2_reflink_xattr_block()
7093 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_in_block() local
7097 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()