函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\workingset.c Create Date:2022-07-27 15:58:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:workingset_refault - evaluate the refault of a previously evicted page*@page: the freshly allocated replacement page*@shadow: shadow entry of the evicted page* Calculates and evaluates the refault distance of the previously* evicted page in the context of

函数原型:void workingset_refault(struct page *page, void *shadow)

返回类型:void

参数:

类型参数名称
struct page *page
void *shadow
289  unpack_shadow(shadow, & memcgid, & pgdat, & eviction, & workingset)
291  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
308  eviction_memcg等于mem_cgroup_from_id(memcgid)
309  如果非mem_cgroup_disabled()且非eviction_memcg则转到:out
311  eviction_lruvec等于mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
312  refault等于atomic_long_read( & Evictions & activations on the inactive file list )
313  active_file等于lruvec_page_state(eviction_lruvec, NR_ACTIVE_FILE)
331  refault_distance等于refaulteviction按位与EVICTION_MASK
341  memcg等于page_memcg(page)
342  lruvec等于mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
344  inc_lruvec_state(lruvec, WORKINGSET_REFAULT)
351  如果refault_distance大于active_file则转到:out
354  SetPageActive(page)
355  advance_inactive_age(memcg, pgdat)
356  inc_lruvec_state(lruvec, WORKINGSET_ACTIVATE)
359  如果workingset
360  SetPageWorkingset(page)
361  inc_lruvec_state(lruvec, WORKINGSET_RESTORE)
363  out :
364  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
add_to_page_cache_lru