Lines Matching refs:ctxt
562 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt,
3673 struct ocfs2_merge_ctxt *ctxt) in ocfs2_try_to_merge_extent() argument
3679 BUG_ON(ctxt->c_contig_type == CONTIG_NONE); in ocfs2_try_to_merge_extent()
3681 if (ctxt->c_split_covers_rec && ctxt->c_has_empty_extent) { in ocfs2_try_to_merge_extent()
3706 if (ctxt->c_contig_type == CONTIG_LEFTRIGHT) { in ocfs2_try_to_merge_extent()
3710 BUG_ON(!ctxt->c_split_covers_rec); in ocfs2_try_to_merge_extent()
3793 if (ctxt->c_contig_type == CONTIG_RIGHT) { in ocfs2_try_to_merge_extent()
3811 if (ctxt->c_split_covers_rec) { in ocfs2_try_to_merge_extent()
4367 struct ocfs2_merge_ctxt *ctxt) in ocfs2_figure_merge_contig_type() argument
4486 ctxt->c_contig_type = ret; in ocfs2_figure_merge_contig_type()
5082 struct ocfs2_merge_ctxt ctxt; in ocfs2_split_extent() local
5095 &ctxt); in ocfs2_split_extent()
5118 ctxt.c_split_covers_rec = 1; in ocfs2_split_extent()
5120 ctxt.c_split_covers_rec = 0; in ocfs2_split_extent()
5122 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5124 trace_ocfs2_split_extent(split_index, ctxt.c_contig_type, in ocfs2_split_extent()
5125 ctxt.c_has_empty_extent, in ocfs2_split_extent()
5126 ctxt.c_split_covers_rec); in ocfs2_split_extent()
5128 if (ctxt.c_contig_type == CONTIG_NONE) { in ocfs2_split_extent()
5129 if (ctxt.c_split_covers_rec) in ocfs2_split_extent()
5141 dealloc, &ctxt); in ocfs2_split_extent()
6487 int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_cluster_dealloc() argument
6504 item->free_next = ctxt->c_global_allocator; in ocfs2_cache_cluster_dealloc()
6506 ctxt->c_global_allocator = item; in ocfs2_cache_cluster_dealloc()
6563 struct ocfs2_cached_dealloc_ctxt *ctxt) in ocfs2_run_deallocs() argument
6568 if (!ctxt) in ocfs2_run_deallocs()
6571 while (ctxt->c_first_suballocator) { in ocfs2_run_deallocs()
6572 fl = ctxt->c_first_suballocator; in ocfs2_run_deallocs()
6587 ctxt->c_first_suballocator = fl->f_next_suballocator; in ocfs2_run_deallocs()
6591 if (ctxt->c_global_allocator) { in ocfs2_run_deallocs()
6593 ctxt->c_global_allocator); in ocfs2_run_deallocs()
6599 ctxt->c_global_allocator = NULL; in ocfs2_run_deallocs()
6608 struct ocfs2_cached_dealloc_ctxt *ctxt) in ocfs2_find_per_slot_free_list() argument
6610 struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator; in ocfs2_find_per_slot_free_list()
6624 fl->f_next_suballocator = ctxt->c_first_suballocator; in ocfs2_find_per_slot_free_list()
6626 ctxt->c_first_suballocator = fl; in ocfs2_find_per_slot_free_list()
6635 struct ocfs2_cached_dealloc_ctxt *ctxt) in ocfs2_find_preferred_free_list() argument
6637 struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator; in ocfs2_find_preferred_free_list()
6651 fl = ctxt->c_first_suballocator; in ocfs2_find_preferred_free_list()
6779 int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_block_dealloc() argument
6787 fl = ocfs2_find_per_slot_free_list(type, slot, ctxt); in ocfs2_cache_block_dealloc()
6817 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt, in ocfs2_cache_extent_block_free() argument
6820 return ocfs2_cache_block_dealloc(ctxt, EXTENT_ALLOC_SYSTEM_INODE, in ocfs2_cache_extent_block_free()