Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-28 14:09:27
Last Modify:2022-05-23 13:25:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:de_dirty_ok - tells whether a node is within its dirty limits*@pgdat: the node to check* Return: %true when the dirty pages in @pgdat are within the node's* dirty limit, %false if the limit is exceeded.

Proto:bool node_dirty_ok(struct pglist_data *pgdat)

Type:bool

Parameter:

TypeParameterName
struct pglist_data *pgdat
504  limit = de_dirty_limit - maximum number of dirty pages allowed in a node*@pgdat: the node* Return: the maximum number of dirty pages allowed in a node, based* on the node's dirtyable memory.
505  nr_pages = 0
507  nr_pages += node_page_state(pgdat, NR_FILE_DIRTY)
508  nr_pages += node_page_state(pgdat, NR_UNSTABLE_NFS)
509  nr_pages += node_page_state(pgdat, NR_WRITEBACK)
511  Return nr_pages <= limit
Caller
NameDescribe
get_page_from_freelistget_page_from_freelist goes through the zonelist trying to allocate* a page.