Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tlb_next_batch

Proto:static bool tlb_next_batch(struct mmu_gather *tlb)

Type:bool

Parameter:

TypeParameterName
struct mmu_gather *tlb
20  batch = active
21  If next Then
22  active = next
23  Return true
26  If batch_count == Limit the maximum number of mmu_gather batches to reduce a risk of soft* lockups for non-preemptible kernels on huge machines when a lot of memory* is zapped during unmapping.* 10K pages freed at once should be safe even without a preemption point. Then Return false
29  batch = __get_free_pages(GFP_NOWAIT | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success., 0)
30  If Not batch Then Return false
33  batch_count++
34  next = NULL
35  nr = 0
36  max = MAX_GATHER_BATCH
38  next = batch
39  active = batch
41  Return true
Caller
NameDescribe
__tlb_remove_page_size