Lines Matching full:ve
353 struct victim_entry *ve; in attach_victim_entry() local
355 ve = f2fs_kmem_cache_alloc(victim_entry_slab, GFP_NOFS); in attach_victim_entry()
357 ve->mtime = mtime; in attach_victim_entry()
358 ve->segno = segno; in attach_victim_entry()
360 rb_link_node(&ve->rb_node, parent, p); in attach_victim_entry()
361 rb_insert_color_cached(&ve->rb_node, &am->root, left_most); in attach_victim_entry()
363 list_add_tail(&ve->list, &am->victim_list); in attach_victim_entry()
367 return ve; in attach_victim_entry()
442 struct victim_entry *ve; in atgc_lookup_victim() local
472 ve = (struct victim_entry *)re; in atgc_lookup_victim()
474 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atgc_lookup_victim()
478 age = div64_u64(accu * (max_mtime - ve->mtime), total_time) * in atgc_lookup_victim()
481 vblocks = get_valid_blocks(sbi, ve->segno, true); in atgc_lookup_victim()
497 p->min_segno = ve->segno; in atgc_lookup_victim()
517 struct victim_entry *ve; in atssr_lookup_victim() local
543 ve = (struct victim_entry *)re; in atssr_lookup_victim()
545 if (ve->mtime >= max_mtime || ve->mtime < min_mtime) in atssr_lookup_victim()
548 age = max_mtime - ve->mtime; in atssr_lookup_victim()
550 vblocks = get_seg_entry(sbi, ve->segno)->ckpt_valid_blocks; in atssr_lookup_victim()
566 p->min_segno = ve->segno; in atssr_lookup_victim()
600 struct victim_entry *ve, *tmp; in release_victim_entry() local
602 list_for_each_entry_safe(ve, tmp, &am->victim_list, list) { in release_victim_entry()
603 list_del(&ve->list); in release_victim_entry()
604 kmem_cache_free(victim_entry_slab, ve); in release_victim_entry()