Lines Matching refs:eviction
199 static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction, in pack_shadow() argument
202 eviction &= EVICTION_MASK; in pack_shadow()
203 eviction = (eviction << MEM_CGROUP_ID_SHIFT) | memcgid; in pack_shadow()
204 eviction = (eviction << NODES_SHIFT) | pgdat->node_id; in pack_shadow()
205 eviction = (eviction << WORKINGSET_SHIFT) | workingset; in pack_shadow()
207 return xa_mk_value(eviction); in pack_shadow()
385 unsigned long eviction; in workingset_eviction() local
400 eviction = atomic_long_read(&lruvec->nonresident_age); in workingset_eviction()
401 eviction >>= bucket_order; in workingset_eviction()
403 return pack_shadow(memcgid, pgdat, eviction, in workingset_eviction()
429 unsigned long eviction; in workingset_test_recent() local
435 &eviction_lruvec, &eviction, workingset); in workingset_test_recent()
442 unpack_shadow(shadow, &memcgid, &pgdat, &eviction, workingset); in workingset_test_recent()
443 eviction <<= bucket_order; in workingset_test_recent()
502 refault_distance = (refault - eviction) & EVICTION_MASK; in workingset_test_recent()