Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap.c Create Date:2022-07-28 14:13:28
Last Modify:2022-05-23 13:40:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:deactivate_file_page - forcefully deactivate a file page*@page: page to deactivate* This function hints the VM that @page is a good reclaim candidate,* for example if its invalidation fails due to the page being dirty* or under writeback.

Proto:void deactivate_file_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
640  If PageUnevictable(page) Then Return
643  If Value is more likely to 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
644  pvec = Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(lru_deactivate_file_pvecs)
646  If Not Add a page to a pagevec. Returns the number of slots still available. || PageCompound(page) Then pagevec_lru_move_fn(pvec, If the page can not be invalidated, it is moved to the* inactive list to speed up its reclaim. It is moved to the* head of the list, rather than the tail, to give the flusher* threads some time to write it out, as this is much more, NULL)
648  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_deactivate_file_pvecs)
Caller
NameDescribe
invalidate_mapping_pagesvalidate_mapping_pages - Invalidate all the unlocked pages of one inode*@mapping: the address_space which holds the pages to invalidate*@start: the offset 'from' which to invalidate*@end: the offset 'to' which to invalidate (inclusive)* This function only