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()
506 xb->xb_signature); in ocfs2_validate_xattr_block()
510 if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) { in ocfs2_validate_xattr_block()
515 (unsigned long long)le64_to_cpu(xb->xb_blkno)); in ocfs2_validate_xattr_block()
519 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
524 le32_to_cpu(xb->xb_fs_generation)); in ocfs2_validate_xattr_block()
989 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_list() local
1002 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_list()
1003 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1004 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list()
1200 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_get() local
1224 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data; in ocfs2_xattr_block_get()
1235 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
2280 struct ocfs2_xattr_block *xb = in ocfs2_init_xattr_block_xa_loc() local
2283 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2288 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2444 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_remove() local
2455 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_remove()
2456 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2457 struct ocfs2_xattr_header *header = &(xb->xb_attrs.xb_header); in ocfs2_xattr_block_remove()
2477 struct ocfs2_xattr_block *xb; in ocfs2_xattr_free_block() local
2496 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_free_block()
2497 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2498 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2499 if (xb->xb_suballoc_loc) in ocfs2_xattr_free_block()
2500 bg_blkno = le64_to_cpu(xb->xb_suballoc_loc); in ocfs2_xattr_free_block()
2506 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2809 struct ocfs2_xattr_block *xb; in ocfs2_xattr_block_find() local
2823 xb = (struct ocfs2_xattr_block *)blk_bh->b_data; in ocfs2_xattr_block_find()
2825 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2826 xs->header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_find()
3036 struct ocfs2_xattr_block *xb = NULL; in ocfs2_calc_xattr_set_need() local
3074 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3081 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3180 xb = (struct ocfs2_xattr_block *)bh->b_data; in ocfs2_calc_xattr_set_need()
3182 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_calc_xattr_set_need()
3191 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3193 &xb->xb_attrs.xb_root.xt_list; in ocfs2_calc_xattr_set_need()
3922 struct ocfs2_xattr_block *xb = in ocfs2_xattr_index_block_find() local
3924 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_xattr_index_block_find()
4080 struct ocfs2_xattr_block *xb = in ocfs2_iterate_xattr_index_block() local
4082 struct ocfs2_extent_list *el = &xb->xb_attrs.xb_root.xt_list; in ocfs2_iterate_xattr_index_block()
4186 struct ocfs2_xattr_block *xb = in ocfs2_cp_xattr_block_to_bucket() local
4188 struct ocfs2_xattr_header *xb_xh = &xb->xb_attrs.xb_header; in ocfs2_cp_xattr_block_to_bucket()
4276 struct ocfs2_xattr_block *xb = in ocfs2_xattr_create_index_block() local
4279 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4336 memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - in ocfs2_xattr_create_index_block()
4339 xr = &xb->xb_attrs.xb_root; in ocfs2_xattr_create_index_block()
4350 xb->xb_flags = cpu_to_le16(xb_flags | OCFS2_XATTR_INDEXED); in ocfs2_xattr_create_index_block()
5268 struct ocfs2_xattr_block *xb = in ocfs2_add_new_xattr_bucket() local
5270 struct ocfs2_xattr_tree_root *xb_root = &xb->xb_attrs.xb_root; in ocfs2_add_new_xattr_bucket()
5422 struct ocfs2_xattr_block *xb = in ocfs2_rm_xattr_cluster() local
5483 le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len); in ocfs2_rm_xattr_cluster()
5763 struct ocfs2_xattr_block *xb; in ocfs2_prepare_refcount_xattr() local
5785 xb = (struct ocfs2_xattr_block *)xbs->xattr_bh->b_data; in ocfs2_prepare_refcount_xattr()
5791 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
6104 struct ocfs2_xattr_block *xb = in ocfs2_xattr_block_attach_refcount() local
6107 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6108 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_attach_refcount()
6586 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_block() local
6588 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header; in ocfs2_reflink_xattr_block()
7089 struct ocfs2_xattr_block *xb = in ocfs2_reflink_xattr_in_block() local
7093 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()