函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-27 17:32:13
Last Modify:2022-05-20 09:53:13 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:It should be called on page which is PG_movable

函数原型:void putback_movable_page(struct page *page)

返回类型:void

参数:

类型参数名称
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)
调用者
名称描述
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.