Lines Matching refs:ac

67 						struct ocfs2_alloc_context **ac,
73 struct ocfs2_alloc_context *ac);
629 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument
636 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
706 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits()
708 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits()
709 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits()
711 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits()
720 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits()
730 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument
741 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL); in ocfs2_claim_local_alloc_bits()
743 local_alloc_inode = ac->ac_inode; in ocfs2_claim_local_alloc_bits()
748 ac->ac_resv); in ocfs2_claim_local_alloc_bits()
769 ocfs2_resmap_claimed_bits(&osb->osb_la_resmap, ac->ac_resv, start, in ocfs2_claim_local_alloc_bits()
786 struct ocfs2_alloc_context *ac, in ocfs2_free_local_alloc_bits() argument
797 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL); in ocfs2_free_local_alloc_bits()
799 local_alloc_inode = ac->ac_inode; in ocfs2_free_local_alloc_bits()
1113 struct ocfs2_alloc_context **ac, in ocfs2_local_alloc_reserve_for_window() argument
1119 *ac = kzalloc(sizeof(struct ocfs2_alloc_context), GFP_KERNEL); in ocfs2_local_alloc_reserve_for_window()
1120 if (!(*ac)) { in ocfs2_local_alloc_reserve_for_window()
1127 (*ac)->ac_bits_wanted = osb->local_alloc_bits; in ocfs2_local_alloc_reserve_for_window()
1128 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); in ocfs2_local_alloc_reserve_for_window()
1134 ocfs2_free_ac_resource(*ac); in ocfs2_local_alloc_reserve_for_window()
1135 memset(*ac, 0, sizeof(struct ocfs2_alloc_context)); in ocfs2_local_alloc_reserve_for_window()
1143 *bitmap_inode = (*ac)->ac_inode; in ocfs2_local_alloc_reserve_for_window()
1145 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window()
1149 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1150 ocfs2_free_alloc_context(*ac); in ocfs2_local_alloc_reserve_for_window()
1151 *ac = NULL; in ocfs2_local_alloc_reserve_for_window()
1164 struct ocfs2_alloc_context *ac) in ocfs2_local_alloc_new_window() argument
1181 ac->ac_last_group = osb->la_last_gd; in ocfs2_local_alloc_new_window()
1186 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, in ocfs2_local_alloc_new_window()
1199 ac->ac_bits_wanted = osb->local_alloc_bits; in ocfs2_local_alloc_new_window()
1200 status = ocfs2_claim_clusters(handle, ac, in ocfs2_local_alloc_new_window()
1223 osb->la_last_gd = ac->ac_last_group; in ocfs2_local_alloc_new_window()
1259 struct ocfs2_alloc_context *ac = NULL; in ocfs2_local_alloc_slide_window() local
1265 &ac, in ocfs2_local_alloc_slide_window()
1316 status = ocfs2_local_alloc_new_window(osb, handle, ac); in ocfs2_local_alloc_slide_window()
1336 if (ac) in ocfs2_local_alloc_slide_window()
1337 ocfs2_free_alloc_context(ac); in ocfs2_local_alloc_slide_window()