Lines Matching refs:metas
6210 int *metas, int *credits, in ocfs2_value_metas_in_xattr_header() argument
6230 *metas += le16_to_cpu(xv->xr_list.l_tree_depth) * in ocfs2_value_metas_in_xattr_header()
6712 struct ocfs2_value_tree_metas *metas = in ocfs2_calc_value_tree_metas() local
6718 metas->credits += bucket->bu_blocks; in ocfs2_calc_value_tree_metas()
6720 xh, &metas->num_metas, in ocfs2_calc_value_tree_metas()
6721 &metas->credits, &metas->num_recs, in ocfs2_calc_value_tree_metas()
6739 struct ocfs2_value_tree_metas metas; in ocfs2_lock_reflink_xattr_rec_allocators() local
6743 memset(&metas, 0, sizeof(metas)); in ocfs2_lock_reflink_xattr_rec_allocators()
6746 ocfs2_calc_value_tree_metas, &metas); in ocfs2_lock_reflink_xattr_rec_allocators()
6752 *credits = metas.credits; in ocfs2_lock_reflink_xattr_rec_allocators()
6766 metas.num_recs = in ocfs2_lock_reflink_xattr_rec_allocators()
6767 (metas.num_recs + ocfs2_refcount_recs_per_rb(osb->sb) - 1) / in ocfs2_lock_reflink_xattr_rec_allocators()
6769 metas.num_metas += metas.num_recs; in ocfs2_lock_reflink_xattr_rec_allocators()
6770 *credits += metas.num_recs + in ocfs2_lock_reflink_xattr_rec_allocators()
6771 metas.num_recs * OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_lock_reflink_xattr_rec_allocators()
6787 metas.num_metas += ocfs2_extend_meta_needed(xt_et->et_root_el); in ocfs2_lock_reflink_xattr_rec_allocators()
6792 if (metas.num_metas) { in ocfs2_lock_reflink_xattr_rec_allocators()
6793 ret = ocfs2_reserve_new_metadata_blocks(osb, metas.num_metas, in ocfs2_lock_reflink_xattr_rec_allocators()