Lines Matching refs:sit_i

334 	struct sit_info *sit_i = SIT_I(sbi);  in get_cb_cost()  local
354 if (mtime < sit_i->min_mtime) in get_cb_cost()
355 sit_i->min_mtime = mtime; in get_cb_cost()
356 if (mtime > sit_i->max_mtime) in get_cb_cost()
357 sit_i->max_mtime = mtime; in get_cb_cost()
358 if (sit_i->max_mtime != sit_i->min_mtime) in get_cb_cost()
359 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()
360 sit_i->max_mtime - sit_i->min_mtime); in get_cb_cost()
487 struct sit_info *sit_i = SIT_I(sbi); in add_victim_entry() local
504 if (mtime < sit_i->min_mtime) in add_victim_entry()
505 sit_i->min_mtime = mtime; in add_victim_entry()
506 if (mtime > sit_i->max_mtime) in add_victim_entry()
507 sit_i->max_mtime = mtime; in add_victim_entry()
508 if (mtime < sit_i->dirty_min_mtime) in add_victim_entry()
509 sit_i->dirty_min_mtime = mtime; in add_victim_entry()
510 if (mtime > sit_i->dirty_max_mtime) in add_victim_entry()
511 sit_i->dirty_max_mtime = mtime; in add_victim_entry()
514 if (sit_i->dirty_max_mtime - mtime < p->age_threshold) in add_victim_entry()
523 struct sit_info *sit_i = SIT_I(sbi); in atgc_lookup_victim() local
530 unsigned long long max_mtime = sit_i->dirty_max_mtime; in atgc_lookup_victim()
531 unsigned long long min_mtime = sit_i->dirty_min_mtime; in atgc_lookup_victim()
596 struct sit_info *sit_i = SIT_I(sbi); in atssr_lookup_victim() local
600 unsigned long long max_mtime = sit_i->dirty_max_mtime; in atssr_lookup_victim()
601 unsigned long long min_mtime = sit_i->dirty_min_mtime; in atssr_lookup_victim()
981 struct sit_info *sit_i = SIT_I(sbi); in check_valid_map() local
985 down_read(&sit_i->sentry_lock); in check_valid_map()
988 up_read(&sit_i->sentry_lock); in check_valid_map()
1666 struct sit_info *sit_i = SIT_I(sbi); in __get_victim() local
1669 down_write(&sit_i->sentry_lock); in __get_victim()
1671 up_write(&sit_i->sentry_lock); in __get_victim()