Lines Matching full:ve

459 	struct victim_entry *ve = NULL;  in __lookup_victim_entry()  local
462 ve = rb_entry(node, struct victim_entry, rb_node); in __lookup_victim_entry()
464 if (mtime < ve->mtime) in __lookup_victim_entry()
469 return ve; in __lookup_victim_entry()
476 struct victim_entry *ve; in __create_victim_entry() local
478 ve = f2fs_kmem_cache_alloc(victim_entry_slab, GFP_NOFS, true, NULL); in __create_victim_entry()
480 ve->mtime = mtime; in __create_victim_entry()
481 ve->segno = segno; in __create_victim_entry()
483 list_add_tail(&ve->list, &am->victim_list); in __create_victim_entry()
486 return ve; in __create_victim_entry()
496 struct victim_entry *ve; in __insert_victim_entry() local
502 ve = rb_entry(parent, struct victim_entry, rb_node); in __insert_victim_entry()
504 if (mtime < ve->mtime) { in __insert_victim_entry()
512 ve = __create_victim_entry(sbi, mtime, segno); in __insert_victim_entry()
514 rb_link_node(&ve->rb_node, parent, p); in __insert_victim_entry()
515 rb_insert_color_cached(&ve->rb_node, root, left_most); in __insert_victim_entry()
561 struct victim_entry *ve; in atgc_lookup_victim() local
587 ve = rb_entry_safe(node, struct victim_entry, rb_node); in atgc_lookup_victim()
588 if (!ve) in atgc_lookup_victim()
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()
598 vblocks = get_valid_blocks(sbi, ve->segno, true); in atgc_lookup_victim()
614 p->min_segno = ve->segno; in atgc_lookup_victim()
632 struct victim_entry *ve; in atssr_lookup_victim() local
648 ve = __lookup_victim_entry(sbi, p->age); in atssr_lookup_victim()
650 if (!ve) { in atssr_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()
661 vblocks = get_seg_entry(sbi, ve->segno)->ckpt_valid_blocks; in atssr_lookup_victim()
677 p->min_segno = ve->segno; in atssr_lookup_victim()
681 ve = rb_entry(stage == 0 ? rb_prev(&ve->rb_node) : in atssr_lookup_victim()
682 rb_next(&ve->rb_node), in atssr_lookup_victim()
707 struct victim_entry *ve, *tmp; in release_victim_entry() local
709 list_for_each_entry_safe(ve, tmp, &am->victim_list, list) { in release_victim_entry()
710 list_del(&ve->list); in release_victim_entry()
711 kmem_cache_free(victim_entry_slab, ve); in release_victim_entry()