Searched refs:heap (Results 1 – 6 of 6) sorted by relevance
/fs/ubifs/ |
D | lprops.c | 50 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap() argument 63 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap() 67 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap() 68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap() 69 heap->arr[ppos] = lprops; in move_up_lpt_heap() 87 static void adjust_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in adjust_lpt_heap() argument 97 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap() 101 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap() 102 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap() 103 heap->arr[ppos] = lprops; in adjust_lpt_heap() [all …]
|
D | find.c | 45 struct ubifs_lpt_heap *heap; in valuable() local 51 heap = &c->lpt_heap[cat - 1]; in valuable() 52 if (heap->cnt < heap->max_cnt) in valuable() 129 struct ubifs_lpt_heap *heap; in scan_for_dirty() local 134 heap = &c->lpt_heap[LPROPS_FREE - 1]; in scan_for_dirty() 135 for (i = 0; i < heap->cnt; i++) { in scan_for_dirty() 136 lprops = heap->arr[i]; in scan_for_dirty() 226 struct ubifs_lpt_heap *heap, *idx_heap; in ubifs_find_dirty_leb() local 272 heap = &c->lpt_heap[LPROPS_DIRTY - 1]; in ubifs_find_dirty_leb() 292 if (heap->cnt) { in ubifs_find_dirty_leb() [all …]
|
D | lpt_commit.c | 764 struct ubifs_lpt_heap *heap; in populate_lsave() local 791 heap = &c->lpt_heap[LPROPS_DIRTY_IDX - 1]; in populate_lsave() 792 for (i = 0; i < heap->cnt; i++) { in populate_lsave() 793 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave() 797 heap = &c->lpt_heap[LPROPS_DIRTY - 1]; in populate_lsave() 798 for (i = 0; i < heap->cnt; i++) { in populate_lsave() 799 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave() 803 heap = &c->lpt_heap[LPROPS_FREE - 1]; in populate_lsave() 804 for (i = 0; i < heap->cnt; i++) { in populate_lsave() 805 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave() [all …]
|
D | debug.h | 258 void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, 284 void dbg_check_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat,
|
D | lpt.c | 2265 struct ubifs_lpt_heap *heap; in dbg_chk_pnode() local 2327 heap = &c->lpt_heap[cat - 1]; in dbg_chk_pnode() 2328 if (lprops->hpos < heap->cnt && in dbg_chk_pnode() 2329 heap->arr[lprops->hpos] == lprops) in dbg_chk_pnode()
|
D | debug.c | 887 void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat) in ubifs_dump_heap() argument 892 current->pid, cat, heap->cnt); in ubifs_dump_heap() 893 for (i = 0; i < heap->cnt; i++) { in ubifs_dump_heap() 894 struct ubifs_lprops *lprops = heap->arr[i]; in ubifs_dump_heap()
|