Lines Matching defs:eviction
96 * at the time of a page's eviction, and comparing it to another
174 * On eviction, a snapshot of this counter (along with some bits to
198 static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction,
201 eviction &= EVICTION_MASK;
202 eviction = (eviction << MEM_CGROUP_ID_SHIFT) | memcgid;
203 eviction = (eviction << NODES_SHIFT) | pgdat->node_id;
204 eviction = (eviction << WORKINGSET_SHIFT) | workingset;
206 return xa_mk_value(eviction);
374 * workingset_eviction - note the eviction of a folio from memory
384 unsigned long eviction;
399 eviction = atomic_long_read(&lruvec->nonresident_age);
400 eviction >>= bucket_order;
411 return pack_shadow(memcgid, pgdat, eviction,
435 unsigned long eviction;
438 return lru_gen_test_recent(shadow, file, &eviction_lruvec, &eviction, workingset);
440 unpack_shadow(shadow, &memcgid, &pgdat, &eviction, workingset);
441 eviction <<= bucket_order;
445 * have been deleted since the folio's eviction.
490 refault_distance = (refault - eviction) & EVICTION_MASK;
534 * pressure caused the eviction.
557 * where the eviction occurred, as that is where the LRU order
596 /* Folio was active prior to eviction */
853 * Calculate the eviction bucket size to cover the longest