Lines Matching refs:ctxt

564 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt,
3660 struct ocfs2_merge_ctxt *ctxt)
3666 BUG_ON(ctxt->c_contig_type == CONTIG_NONE);
3668 if (ctxt->c_split_covers_rec && ctxt->c_has_empty_extent) {
3693 if (ctxt->c_contig_type == CONTIG_LEFTRIGHT) {
3697 BUG_ON(!ctxt->c_split_covers_rec);
3780 if (ctxt->c_contig_type == CONTIG_RIGHT) {
3798 if (ctxt->c_split_covers_rec) {
4354 struct ocfs2_merge_ctxt *ctxt)
4473 ctxt->c_contig_type = ret;
5069 struct ocfs2_merge_ctxt ctxt;
5082 &ctxt);
5105 ctxt.c_split_covers_rec = 1;
5107 ctxt.c_split_covers_rec = 0;
5109 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]);
5111 trace_ocfs2_split_extent(split_index, ctxt.c_contig_type,
5112 ctxt.c_has_empty_extent,
5113 ctxt.c_split_covers_rec);
5115 if (ctxt.c_contig_type == CONTIG_NONE) {
5116 if (ctxt.c_split_covers_rec)
5128 dealloc, &ctxt);
6457 int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
6474 item->free_next = ctxt->c_global_allocator;
6476 ctxt->c_global_allocator = item;
6533 struct ocfs2_cached_dealloc_ctxt *ctxt)
6538 if (!ctxt)
6541 while (ctxt->c_first_suballocator) {
6542 fl = ctxt->c_first_suballocator;
6557 ctxt->c_first_suballocator = fl->f_next_suballocator;
6561 if (ctxt->c_global_allocator) {
6563 ctxt->c_global_allocator);
6569 ctxt->c_global_allocator = NULL;
6578 struct ocfs2_cached_dealloc_ctxt *ctxt)
6580 struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator;
6594 fl->f_next_suballocator = ctxt->c_first_suballocator;
6596 ctxt->c_first_suballocator = fl;
6605 struct ocfs2_cached_dealloc_ctxt *ctxt)
6607 struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator;
6621 fl = ctxt->c_first_suballocator;
6749 int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
6757 fl = ocfs2_find_per_slot_free_list(type, slot, ctxt);
6787 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt,
6790 return ocfs2_cache_block_dealloc(ctxt, EXTENT_ALLOC_SYSTEM_INODE,