Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:58:08
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:It should be called on page which is PG_movable

Proto:void putback_movable_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
151  VM_BUG_ON_PAGE(!PageLocked(page), page)
152  VM_BUG_ON_PAGE(!PageMovable(page), page)
153  VM_BUG_ON_PAGE(!PageIsolated(page), page)
155  mapping = page_mapping(page)
156  putback_page(page)
157  __ClearPageIsolated(page)
Caller
NameDescribe
putback_movable_pagesPut previously isolated pages back onto the appropriate lists* from where they were once taken off for compaction/migration.* This function shall be used whenever the isolated pageset has been* built from lru, balloon, hugetlbfs page
unmap_and_moveObtain the lock on page, remove all ptes and migrate the page* to the newly allocated page in newpage.