Lines Matching defs:eviction
96 * at the time of a page's eviction, and comparing it to another
163 * On eviction, a snapshot of this counter (along with some bits to
185 static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction,
188 eviction >>= bucket_order;
189 eviction &= EVICTION_MASK;
190 eviction = (eviction << MEM_CGROUP_ID_SHIFT) | memcgid;
191 eviction = (eviction << NODES_SHIFT) | pgdat->node_id;
192 eviction = (eviction << 1) | workingset;
194 return xa_mk_value(eviction);
246 * workingset_eviction - note the eviction of a page from memory
256 unsigned long eviction;
278 eviction = atomic_long_read(&lruvec->nonresident_age);
279 return pack_shadow(memcgid, pgdat, eviction, PageWorkingset(page));
289 * pressure caused the eviction.
300 unsigned long eviction;
306 unpack_shadow(shadow, &memcgid, &pgdat, &eviction, &workingset);
311 * have been deleted since the page's eviction.
355 refault_distance = (refault - eviction) & EVICTION_MASK;
359 * where the eviction occurred, as that is where the LRU order
426 /* Page was active prior to eviction */
666 * Calculate the eviction bucket size to cover the longest