Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:isolate_movable_page

Proto:int isolate_movable_page(struct page *page, isolate_mode_t mode)

Type:int

Parameter:

TypeParameterName
struct page *page
isolate_mode_tmode
98  If Value for the false possibility is greater at compile time(!Try to grab a ref unless the page has a refcount of zero, return false if* that is the case.* This can be called when MMU is off so it must not access* any of the virtual mappings.) Then Go to out
106  If Value for the false possibility is greater at compile time(!__PageMovable(page)) Then Go to out_putpage
119  If Value for the false possibility is greater at compile time(!Return true if the page was successfully locked) Then Go to out_putpage
122  If Not PageMovable(page) || PageIsolated(page) Then Go to out_no_isolated
125  mapping = page_mapping(page)
126  VM_BUG_ON_PAGE(!mapping, page)
128  If Not isolate_page(page, mode) Then Go to out_no_isolated
132  WARN_ON_ONCE(PageIsolated(page))
133  __SetPageIsolated(page)
134  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
136  Return 0
138  out_no_isolated :
139  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
140  out_putpage :
141  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
142  out :
143  Return -EBUSY
Caller
NameDescribe
__soft_offline_page
isolate_migratepages_blocksolate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock