Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:de_dirtyable_memory - number of dirtyable pages in a node*@pgdat: the node* Return: the node's number of pages potentially available for dirty* page cache. This is the base value for the per-node dirty limits.

Proto:static unsigned long node_dirtyable_memory(struct pglist_data *pgdat)

Type:unsigned long

Parameter:

TypeParameterName
struct pglist_data *pgdat
279  nr_pages = 0
282  When z < MAX_NR_ZONES cycle
283  zone = node_zones + z
285  If Not Returns true if a zone has memory Then Continue
288  nr_pages += zone_page_state(zone, NR_FREE_PAGES)
296  nr_pages -= min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nr_pages, * This is a per-node reserve of pages that are not available * to userspace allocations.)
298  nr_pages += node_page_state(pgdat, NR_INACTIVE_FILE)
299  nr_pages += node_page_state(pgdat, NR_ACTIVE_FILE)
301  Return nr_pages
Caller
NameDescribe
node_dirty_limitde_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.