Lines Matching refs:ctxt

569 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt,
3659 struct ocfs2_merge_ctxt *ctxt) in ocfs2_try_to_merge_extent() argument
3665 BUG_ON(ctxt->c_contig_type == CONTIG_NONE); in ocfs2_try_to_merge_extent()
3667 if (ctxt->c_split_covers_rec && ctxt->c_has_empty_extent) { in ocfs2_try_to_merge_extent()
3684 if (ctxt->c_contig_type == CONTIG_LEFTRIGHT) { in ocfs2_try_to_merge_extent()
3688 BUG_ON(!ctxt->c_split_covers_rec); in ocfs2_try_to_merge_extent()
3753 if (ctxt->c_contig_type == CONTIG_RIGHT) { in ocfs2_try_to_merge_extent()
3771 if (ctxt->c_split_covers_rec) { in ocfs2_try_to_merge_extent()
5031 struct ocfs2_merge_ctxt ctxt; in ocfs2_split_extent() local
5042 ctxt.c_contig_type = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5069 ctxt.c_split_covers_rec = 1; in ocfs2_split_extent()
5071 ctxt.c_split_covers_rec = 0; in ocfs2_split_extent()
5073 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5075 trace_ocfs2_split_extent(split_index, ctxt.c_contig_type, in ocfs2_split_extent()
5076 ctxt.c_has_empty_extent, in ocfs2_split_extent()
5077 ctxt.c_split_covers_rec); in ocfs2_split_extent()
5079 if (ctxt.c_contig_type == CONTIG_NONE) { in ocfs2_split_extent()
5080 if (ctxt.c_split_covers_rec) in ocfs2_split_extent()
5092 dealloc, &ctxt); in ocfs2_split_extent()
6394 int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_cluster_dealloc() argument
6411 item->free_next = ctxt->c_global_allocator; in ocfs2_cache_cluster_dealloc()
6413 ctxt->c_global_allocator = item; in ocfs2_cache_cluster_dealloc()
6470 struct ocfs2_cached_dealloc_ctxt *ctxt) in ocfs2_run_deallocs() argument
6475 if (!ctxt) in ocfs2_run_deallocs()
6478 while (ctxt->c_first_suballocator) { in ocfs2_run_deallocs()
6479 fl = ctxt->c_first_suballocator; in ocfs2_run_deallocs()
6494 ctxt->c_first_suballocator = fl->f_next_suballocator; in ocfs2_run_deallocs()
6498 if (ctxt->c_global_allocator) { in ocfs2_run_deallocs()
6500 ctxt->c_global_allocator); in ocfs2_run_deallocs()
6506 ctxt->c_global_allocator = NULL; in ocfs2_run_deallocs()
6515 struct ocfs2_cached_dealloc_ctxt *ctxt) in ocfs2_find_per_slot_free_list() argument
6517 struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator; in ocfs2_find_per_slot_free_list()
6531 fl->f_next_suballocator = ctxt->c_first_suballocator; in ocfs2_find_per_slot_free_list()
6533 ctxt->c_first_suballocator = fl; in ocfs2_find_per_slot_free_list()
6538 int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_block_dealloc() argument
6546 fl = ocfs2_find_per_slot_free_list(type, slot, ctxt); in ocfs2_cache_block_dealloc()
6576 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_extent_block_free() argument
6579 return ocfs2_cache_block_dealloc(ctxt, EXTENT_ALLOC_SYSTEM_INODE, in ocfs2_cache_extent_block_free()