Lines Matching full:ve
399 struct victim_entry *ve; in attach_victim_entry() local
401 ve = f2fs_kmem_cache_alloc(victim_entry_slab, in attach_victim_entry()
404 ve->mtime = mtime; in attach_victim_entry()
405 ve->segno = segno; in attach_victim_entry()
407 rb_link_node(&ve->rb_node, parent, p); in attach_victim_entry()
408 rb_insert_color_cached(&ve->rb_node, &am->root, left_most); in attach_victim_entry()
410 list_add_tail(&ve->list, &am->victim_list); in attach_victim_entry()
414 return ve; in attach_victim_entry()
485 struct victim_entry *ve; in atgc_lookup_victim() local
515 ve = (struct victim_entry *)re; in atgc_lookup_victim()
517 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atgc_lookup_victim()
521 age = div64_u64(accu * (max_mtime - ve->mtime), total_time) * in atgc_lookup_victim()
524 vblocks = get_valid_blocks(sbi, ve->segno, true); in atgc_lookup_victim()
540 p->min_segno = ve->segno; in atgc_lookup_victim()
560 struct victim_entry *ve; in atssr_lookup_victim() local
586 ve = (struct victim_entry *)re; in atssr_lookup_victim()
588 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atssr_lookup_victim()
591 age = max_mtime - ve->mtime; in atssr_lookup_victim()
593 vblocks = get_seg_entry(sbi, ve->segno)->ckpt_valid_blocks; in atssr_lookup_victim()
609 p->min_segno = ve->segno; in atssr_lookup_victim()
643 struct victim_entry *ve, *tmp; in release_victim_entry() local
645 list_for_each_entry_safe(ve, tmp, &am->victim_list, list) { in release_victim_entry()
646 list_del(&ve->list); in release_victim_entry()
647 kmem_cache_free(victim_entry_slab, ve); in release_victim_entry()