Lines Matching refs:eviction
184 static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction, in pack_shadow() argument
187 eviction >>= bucket_order; in pack_shadow()
188 eviction &= EVICTION_MASK; in pack_shadow()
189 eviction = (eviction << MEM_CGROUP_ID_SHIFT) | memcgid; in pack_shadow()
190 eviction = (eviction << NODES_SHIFT) | pgdat->node_id; in pack_shadow()
191 eviction = (eviction << 1) | workingset; in pack_shadow()
193 return xa_mk_value(eviction); in pack_shadow()
228 unsigned long eviction; in workingset_eviction() local
237 eviction = atomic_long_inc_return(&lruvec->inactive_age); in workingset_eviction()
238 return pack_shadow(memcgid, pgdat, eviction, PageWorkingset(page)); in workingset_eviction()
255 unsigned long eviction; in workingset_refault() local
261 unpack_shadow(shadow, &memcgid, &pgdat, &eviction, &workingset); in workingset_refault()
303 refault_distance = (refault - eviction) & EVICTION_MASK; in workingset_refault()