Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:04:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Free a list of 0-order pages

Proto:void free_unref_page_list(struct list_head *list)

Type:void

Parameter:

TypeParameterName
struct list_head *list
3075  batch_count = 0
3079  pfn = page_to_pfn(page)
3080  If Not free_unref_page_prepare(page, pfn) Then deletes entry from list
3082  set_page_private(page, pfn)
3085  local_irq_save(flags)
3087  pfn = page_private(page)
3089  set_page_private(page, 0)
3090  trace_mm_page_free_batched(page)
3091  free_unref_page_commit(page, pfn)
3097  If ++batch_count == SWAP_CLUSTER_MAX Then
3098  local_irq_restore(flags)
3099  batch_count = 0
3100  local_irq_save(flags)
3103  local_irq_restore(flags)
Caller
NameDescribe
shrink_page_listshrink_page_list() returns the number of reclaimed pages
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages
shrink_active_list