Lines Matching refs:vb

189 				   struct ocfs2_xattr_value_buf *vb);
709 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_extend_allocation() argument
715 u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation()
718 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in ocfs2_xattr_extend_allocation()
723 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation()
730 prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation()
745 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation()
747 clusters_to_add -= le32_to_cpu(vb->vb_xv->xr_clusters) - in ocfs2_xattr_extend_allocation()
758 &vb->vb_xv->xr_list); in ocfs2_xattr_extend_allocation()
772 struct ocfs2_xattr_value_buf *vb, in __ocfs2_remove_xattr_range() argument
782 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in __ocfs2_remove_xattr_range()
784 ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in __ocfs2_remove_xattr_range()
798 le32_add_cpu(&vb->vb_xv->xr_clusters, -len); in __ocfs2_remove_xattr_range()
799 ocfs2_journal_dirty(handle, vb->vb_bh); in __ocfs2_remove_xattr_range()
819 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_shrink_size() argument
835 &vb->vb_xv->xr_list, &ext_flags); in ocfs2_xattr_shrink_size()
844 ret = __ocfs2_remove_xattr_range(inode, vb, cpos, in ocfs2_xattr_shrink_size()
864 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_value_truncate() argument
870 u32 old_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_value_truncate()
878 vb, ctxt); in ocfs2_xattr_value_truncate()
882 vb, ctxt); in ocfs2_xattr_value_truncate()
1332 struct ocfs2_xattr_value_buf *vb, in __ocfs2_xattr_set_value_outside() argument
1344 struct ocfs2_xattr_value_root *xv = vb->vb_xv; in __ocfs2_xattr_set_value_outside()
1509 struct ocfs2_xattr_value_buf *vb) in ocfs2_xa_fill_value_buf() argument
1519 loc->xl_ops->xlo_fill_value_buf(loc, vb); in ocfs2_xa_fill_value_buf()
1520 vb->vb_xv = in ocfs2_xa_fill_value_buf()
1657 struct ocfs2_xattr_value_buf *vb) in ocfs2_xa_block_fill_value_buf() argument
1664 vb->vb_access = ocfs2_journal_access_xb; in ocfs2_xa_block_fill_value_buf()
1666 vb->vb_access = ocfs2_journal_access_di; in ocfs2_xa_block_fill_value_buf()
1667 vb->vb_bh = bh; in ocfs2_xa_block_fill_value_buf()
1845 struct ocfs2_xattr_value_buf *vb) in ocfs2_xa_bucket_fill_value_buf() argument
1859 vb->vb_access = ocfs2_journal_access; in ocfs2_xa_bucket_fill_value_buf()
1860 vb->vb_bh = bucket->bu_bhs[block_offset]; in ocfs2_xa_bucket_fill_value_buf()
1879 struct ocfs2_xattr_value_buf vb; in ocfs2_xa_value_clusters() local
1884 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_value_clusters()
1885 return le32_to_cpu(vb.vb_xv->xr_clusters); in ocfs2_xa_value_clusters()
1892 struct ocfs2_xattr_value_buf vb; in ocfs2_xa_value_truncate() local
1894 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_value_truncate()
1895 trunc_rc = ocfs2_xattr_value_truncate(loc->xl_inode, &vb, bytes, in ocfs2_xa_value_truncate()
2190 struct ocfs2_xattr_value_buf vb; in ocfs2_xa_store_value() local
2194 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_store_value()
2196 ctxt->handle, &vb, in ocfs2_xa_store_value()
2346 struct ocfs2_xattr_value_buf *vb, in ocfs2_remove_value_outside() argument
2366 vb->vb_xv = (struct ocfs2_xattr_value_root *) in ocfs2_remove_value_outside()
2369 ret = ocfs2_lock_xattr_remove_allocators(inode, vb->vb_xv, in ocfs2_remove_value_outside()
2382 ret = ocfs2_xattr_value_truncate(inode, vb, 0, &ctxt); in ocfs2_remove_value_outside()
2413 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_ibody_remove() local
2422 ret = ocfs2_remove_value_outside(inode, &vb, header, in ocfs2_xattr_ibody_remove()
2440 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_block_remove() local
2452 ret = ocfs2_remove_value_outside(inode, &vb, header, in ocfs2_xattr_block_remove()
5351 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_bucket_value_truncate() local
5367 vb.vb_bh = bucket->bu_bhs[value_blk]; in ocfs2_xattr_bucket_value_truncate()
5368 BUG_ON(!vb.vb_bh); in ocfs2_xattr_bucket_value_truncate()
5370 vb.vb_xv = (struct ocfs2_xattr_value_root *) in ocfs2_xattr_bucket_value_truncate()
5371 (vb.vb_bh->b_data + offset % blocksize); in ocfs2_xattr_bucket_value_truncate()
5382 ret = ocfs2_xattr_value_truncate(inode, &vb, len, ctxt); in ocfs2_xattr_bucket_value_truncate()
5761 struct ocfs2_xattr_value_buf vb; in ocfs2_prepare_refcount_xattr() local
5773 vb.vb_bh = xis->inode_bh; in ocfs2_prepare_refcount_xattr()
5774 vb.vb_access = ocfs2_journal_access_di; in ocfs2_prepare_refcount_xattr()
5793 vb.vb_bh = xbs->bucket->bu_bhs[block_off]; in ocfs2_prepare_refcount_xattr()
5794 vb.vb_access = ocfs2_journal_access; in ocfs2_prepare_refcount_xattr()
5807 vb.vb_bh = xbs->xattr_bh; in ocfs2_prepare_refcount_xattr()
5808 vb.vb_access = ocfs2_journal_access_xb; in ocfs2_prepare_refcount_xattr()
5815 vb.vb_xv = (struct ocfs2_xattr_value_root *) in ocfs2_prepare_refcount_xattr()
5819 &num_clusters, &vb.vb_xv->xr_list, in ocfs2_prepare_refcount_xattr()
5853 ref_root_bh, vb.vb_xv, in ocfs2_prepare_refcount_xattr()
5860 ret = ocfs2_refcount_cow_xattr(inode, di, &vb, in ocfs2_prepare_refcount_xattr()
5862 le32_to_cpu(vb.vb_xv->xr_clusters), p); in ocfs2_prepare_refcount_xattr()
5924 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_attach_refcount_normal() argument
5946 vb->vb_xv = xv; in ocfs2_xattr_attach_refcount_normal()
5947 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in ocfs2_xattr_attach_refcount_normal()
5971 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_inline_attach_refcount() local
5976 return ocfs2_xattr_attach_refcount_normal(inode, &vb, header, in ocfs2_xattr_inline_attach_refcount()
6033 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_bucket_value_refcount() local
6057 &vb.vb_xv, &vb.vb_bh); in ocfs2_xattr_bucket_value_refcount()
6064 INODE_CACHE(inode), &vb); in ocfs2_xattr_bucket_value_refcount()
6066 ret = ocfs2_xattr_value_attach_refcount(inode, vb.vb_xv, in ocfs2_xattr_bucket_value_refcount()
6101 struct ocfs2_xattr_value_buf vb = { in ocfs2_xattr_block_attach_refcount() local
6106 ret = ocfs2_xattr_attach_refcount_normal(inode, &vb, header, in ocfs2_xattr_block_attach_refcount()
6330 struct ocfs2_xattr_value_buf *vb, in ocfs2_reflink_xattr_header() argument
6397 vb->vb_xv = new_xv; in ocfs2_reflink_xattr_header()
6398 vb->vb_bh = value_bh; in ocfs2_reflink_xattr_header()
6400 INODE_CACHE(args->new_inode), vb); in ocfs2_reflink_xattr_header()
6465 struct ocfs2_xattr_value_buf vb = { in ocfs2_reflink_xattr_inline() local
6498 args->new_bh, new_xh, &vb, meta_ac, in ocfs2_reflink_xattr_inline()
6585 struct ocfs2_xattr_value_buf vb = { in ocfs2_reflink_xattr_block() local
6627 new_blk_bh, new_xh, &vb, meta_ac, in ocfs2_reflink_xattr_block()
6829 struct ocfs2_xattr_value_buf vb = { in ocfs2_reflink_xattr_bucket() local
6878 &vb, meta_ac, in ocfs2_reflink_xattr_bucket()