Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm_inline.h Create Date:2022-07-28 14:08:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__update_lru_size

Proto:static __always_inline void __update_lru_size(struct lruvec *lruvec, enum lru_list lru, enum zone_type zid, int nr_pages)

Type:void

Parameter:

TypeParameterName
struct lruvec *lruvec
enum lru_listlru
enum zone_typezid
intnr_pages
30  pgdat = lruvec_pgdat(lruvec)
32  __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages)
33  We do not maintain differentials in a single processor configuration.* The functions directly modify the zone and global counters.
Caller
NameDescribe
update_lru_sizesUpdate LRU sizes after isolating pages. The LRU size updates must* be complete before mem_cgroup_update_lru_size due to a santity check.