Lines Matching full:mtime

366 	unsigned long long mtime = 0;  in get_cb_cost()  local
374 mtime += get_seg_entry(sbi, start + i)->mtime; in get_cb_cost()
377 mtime = div_u64(mtime, usable_segs_per_sec); in get_cb_cost()
383 if (mtime < sit_i->min_mtime) in get_cb_cost()
384 sit_i->min_mtime = mtime; in get_cb_cost()
385 if (mtime > sit_i->max_mtime) in get_cb_cost()
386 sit_i->max_mtime = mtime; in get_cb_cost()
388 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()
442 if (cur_ve->mtime > next_ve->mtime) { in f2fs_check_victim_tree()
445 cur_ve->mtime, next_ve->mtime); in f2fs_check_victim_tree()
455 unsigned long long mtime) in __lookup_victim_entry() argument
464 if (mtime < ve->mtime) in __lookup_victim_entry()
473 unsigned long long mtime, unsigned int segno) in __create_victim_entry() argument
480 ve->mtime = mtime; in __create_victim_entry()
490 unsigned long long mtime, unsigned int segno) in __insert_victim_entry() argument
504 if (mtime < ve->mtime) { in __insert_victim_entry()
512 ve = __create_victim_entry(sbi, mtime, segno); in __insert_victim_entry()
524 unsigned long long mtime = 0; in add_victim_entry() local
534 mtime += get_seg_entry(sbi, start + i)->mtime; in add_victim_entry()
535 mtime = div_u64(mtime, SEGS_PER_SEC(sbi)); in add_victim_entry()
538 if (mtime < sit_i->min_mtime) in add_victim_entry()
539 sit_i->min_mtime = mtime; in add_victim_entry()
540 if (mtime > sit_i->max_mtime) in add_victim_entry()
541 sit_i->max_mtime = mtime; in add_victim_entry()
542 if (mtime < sit_i->dirty_min_mtime) in add_victim_entry()
543 sit_i->dirty_min_mtime = mtime; in add_victim_entry()
544 if (mtime > sit_i->dirty_max_mtime) in add_victim_entry()
545 sit_i->dirty_max_mtime = mtime; in add_victim_entry()
548 if (sit_i->dirty_max_mtime - mtime < p->age_threshold) in add_victim_entry()
551 __insert_victim_entry(sbi, mtime, segno); in add_victim_entry()
591 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atgc_lookup_victim()
595 age = div64_u64(accu * (max_mtime - ve->mtime), total_time) * in atgc_lookup_victim()
656 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atssr_lookup_victim()
659 age = max_mtime - ve->mtime; in atssr_lookup_victim()