Lines Matching refs:metas
6225 int *metas, int *credits, in ocfs2_value_metas_in_xattr_header() argument
6245 *metas += le16_to_cpu(xv->xr_list.l_tree_depth) * in ocfs2_value_metas_in_xattr_header()
6736 struct ocfs2_value_tree_metas *metas = in ocfs2_calc_value_tree_metas() local
6742 metas->credits += bucket->bu_blocks; in ocfs2_calc_value_tree_metas()
6744 xh, &metas->num_metas, in ocfs2_calc_value_tree_metas()
6745 &metas->credits, &metas->num_recs, in ocfs2_calc_value_tree_metas()
6763 struct ocfs2_value_tree_metas metas; in ocfs2_lock_reflink_xattr_rec_allocators() local
6767 memset(&metas, 0, sizeof(metas)); in ocfs2_lock_reflink_xattr_rec_allocators()
6770 ocfs2_calc_value_tree_metas, &metas); in ocfs2_lock_reflink_xattr_rec_allocators()
6776 *credits = metas.credits; in ocfs2_lock_reflink_xattr_rec_allocators()
6790 metas.num_recs = in ocfs2_lock_reflink_xattr_rec_allocators()
6791 (metas.num_recs + ocfs2_refcount_recs_per_rb(osb->sb) - 1) / in ocfs2_lock_reflink_xattr_rec_allocators()
6793 metas.num_metas += metas.num_recs; in ocfs2_lock_reflink_xattr_rec_allocators()
6794 *credits += metas.num_recs + in ocfs2_lock_reflink_xattr_rec_allocators()
6795 metas.num_recs * OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_lock_reflink_xattr_rec_allocators()
6811 metas.num_metas += ocfs2_extend_meta_needed(xt_et->et_root_el); in ocfs2_lock_reflink_xattr_rec_allocators()
6816 if (metas.num_metas) { in ocfs2_lock_reflink_xattr_rec_allocators()
6817 ret = ocfs2_reserve_new_metadata_blocks(osb, metas.num_metas, in ocfs2_lock_reflink_xattr_rec_allocators()