Lines Matching refs:am

250 		if (sbi->am.atgc_enabled)  in select_gc_type()
457 struct atgc_management *am = &sbi->am; in __lookup_victim_entry() local
458 struct rb_node *node = am->root.rb_root.rb_node; in __lookup_victim_entry()
475 struct atgc_management *am = &sbi->am; in __create_victim_entry() local
483 list_add_tail(&ve->list, &am->victim_list); in __create_victim_entry()
484 am->victim_count++; in __create_victim_entry()
492 struct atgc_management *am = &sbi->am; in __insert_victim_entry() local
493 struct rb_root_cached *root = &am->root; in __insert_victim_entry()
558 struct atgc_management *am = &sbi->am; in atgc_lookup_victim() local
559 struct rb_root_cached *root = &am->root; in atgc_lookup_victim()
568 unsigned int dirty_threshold = max(am->max_candidate_count, in atgc_lookup_victim()
569 am->candidate_ratio * in atgc_lookup_victim()
570 am->victim_count / 100); in atgc_lookup_victim()
571 unsigned int age_weight = am->age_weight; in atgc_lookup_victim()
631 struct atgc_management *am = &sbi->am; in atssr_lookup_victim() local
637 unsigned int dirty_threshold = max(am->max_candidate_count, in atssr_lookup_victim()
638 am->candidate_ratio * in atssr_lookup_victim()
639 am->victim_count / 100); in atssr_lookup_victim()
694 f2fs_bug_on(sbi, !f2fs_check_victim_tree(sbi, &sbi->am.root)); in lookup_victim_by_age()
706 struct atgc_management *am = &sbi->am; in release_victim_entry() local
709 list_for_each_entry_safe(ve, tmp, &am->victim_list, list) { in release_victim_entry()
712 am->victim_count--; in release_victim_entry()
715 am->root = RB_ROOT_CACHED; in release_victim_entry()
717 f2fs_bug_on(sbi, am->victim_count); in release_victim_entry()
718 f2fs_bug_on(sbi, !list_empty(&am->victim_list)); in release_victim_entry()
795 p.age_threshold = sbi->am.age_threshold; in f2fs_get_victim()
1318 int type = fio.sbi->am.atgc_enabled && (gc_type == BG_GC) && in move_data_block()
2029 struct atgc_management *am = &sbi->am; in init_atgc_management() local
2033 am->atgc_enabled = true; in init_atgc_management()
2035 am->root = RB_ROOT_CACHED; in init_atgc_management()
2036 INIT_LIST_HEAD(&am->victim_list); in init_atgc_management()
2037 am->victim_count = 0; in init_atgc_management()
2039 am->candidate_ratio = DEF_GC_THREAD_CANDIDATE_RATIO; in init_atgc_management()
2040 am->max_candidate_count = DEF_GC_THREAD_MAX_CANDIDATE_COUNT; in init_atgc_management()
2041 am->age_weight = DEF_GC_THREAD_AGE_WEIGHT; in init_atgc_management()
2042 am->age_threshold = DEF_GC_THREAD_AGE_THRESHOLD; in init_atgc_management()