Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Racy check whether the huge page can be split

Proto:bool can_split_huge_page(struct page *page, int *pextra_pins)

Type:bool

Parameter:

TypeParameterName
struct page *page
int *pextra_pins
2667  If PageAnon(page) Then extra_pins = If PageSwapCache(page) Then HPAGE_PMD_NR Else 0
2669  Else extra_pins = HPAGE_PMD_NR
2671  If pextra_pins Then pextra_pins = extra_pins
2673  Return total_mapcount(page) == page_count(page) - extra_pins - 1
Caller
NameDescribe
split_huge_page_to_listThis function splits huge page into normal pages. @page can point to any* subpage of huge page to split. Split doesn't change the position of @page.* Only caller must hold pin on the @page, otherwise split fails with -EBUSY.* The huge page must be locked.