Lines Matching defs:ac
67 struct ocfs2_alloc_context **ac,
73 struct ocfs2_alloc_context *ac);
636 struct ocfs2_alloc_context *ac)
645 BUG_ON(!ac);
715 if (ac->ac_max_block)
717 (unsigned long long)ac->ac_max_block);
719 ac->ac_inode = local_alloc_inode;
721 ac->ac_alloc_slot = osb->slot_num;
722 ac->ac_which = OCFS2_AC_USE_LOCAL;
724 ac->ac_bh = osb->local_alloc_bh;
741 struct ocfs2_alloc_context *ac,
753 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL);
755 local_alloc_inode = ac->ac_inode;
760 ac->ac_resv);
781 ocfs2_resmap_claimed_bits(&osb->osb_la_resmap, ac->ac_resv, start,
1076 struct ocfs2_alloc_context **ac,
1082 *ac = kzalloc(sizeof(struct ocfs2_alloc_context), GFP_KERNEL);
1083 if (!(*ac)) {
1090 (*ac)->ac_bits_wanted = osb->local_alloc_default_bits;
1091 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac);
1097 ocfs2_free_ac_resource(*ac);
1098 memset(*ac, 0, sizeof(struct ocfs2_alloc_context));
1106 *bitmap_inode = (*ac)->ac_inode;
1108 *bitmap_bh = (*ac)->ac_bh;
1112 if ((status < 0) && *ac) {
1113 ocfs2_free_alloc_context(*ac);
1114 *ac = NULL;
1126 struct ocfs2_alloc_context *ac)
1148 ac->ac_last_group = osb->la_last_gd;
1153 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits,
1166 ac->ac_bits_wanted = osb->local_alloc_default_bits;
1167 status = ocfs2_claim_clusters(handle, ac,
1190 osb->la_last_gd = ac->ac_last_group;
1226 struct ocfs2_alloc_context *ac = NULL;
1234 &ac,
1285 status = ocfs2_local_alloc_new_window(osb, handle, ac);
1306 if (ac)
1307 ocfs2_free_alloc_context(ac);