Lines Matching refs:gc_candidate
182 static struct gc_candidate *add_list(struct gc_candidate *cand, in add_list()
187 struct gc_candidate *cur; in add_list()
193 cur = rb_entry(parent, struct gc_candidate, rb_node); in add_list()
212 cand = rb_entry(rb_last(&list->rb_tree), struct gc_candidate, rb_node); in add_list()
218 static void remove_from_list(struct gc_candidate *cand) in remove_from_list()
226 static void free_candidate(struct super_block *sb, struct gc_candidate *cand) in free_candidate()
236 struct gc_candidate *cand; in get_best_cand()
241 cand = rb_entry(rb_first(&list->rb_tree), struct gc_candidate, rb_node); in get_best_cand()
268 static void __add_candidate(struct super_block *sb, struct gc_candidate *cand) in __add_candidate()
302 struct gc_candidate *cand; in add_candidate()
321 struct gc_candidate *cand; in remove_segment_from_lists()
348 static struct gc_candidate *first_in_list(struct candidate_list *list) in first_in_list()
352 return rb_entry(rb_first(&list->rb_tree), struct gc_candidate, rb_node); in first_in_list()
364 static struct gc_candidate *get_candidate(struct super_block *sb) in get_candidate()
368 struct gc_candidate *cand = NULL, *this; in get_candidate()
384 static int __logfs_gc_once(struct super_block *sb, struct gc_candidate *cand) in __logfs_gc_once()
413 struct gc_candidate *cand; in logfs_gc_once()
538 struct gc_candidate *wl_cand, *free_cand; in logfs_wl_pass()
581 struct gc_candidate *cand; in logfs_journal_wl_pass()
598 struct gc_candidate, rb_node); in logfs_journal_wl_pass()
702 struct gc_candidate *cand; in logfs_cleanup_list()
705 cand = rb_entry(list->rb_tree.rb_node, struct gc_candidate, in logfs_cleanup_list()