Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Wait for a page to complete writeback

Proto:void wait_on_page_writeback(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
2820  If Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then
2821  trace_wait_on_page_writeback(page, page_mapping(page))
2822  wait_on_page_bit(page, PG_writeback)
Caller
NameDescribe
write_cache_pageswrite_cache_pages - walk the list of dirty pages of the given address space and write all of them
write_one_pagewrite_one_page - write out a single page and wait on I/O*@page: the page to write* The page must be locked by the caller and will be unlocked upon return
wait_for_stable_pagewait_for_stable_page() - wait for writeback to finish, if necessary.*@page: The page to wait on.* This function determines if the given page is related to a backing device* that requires page contents to be held stable during writeback. If so, then
truncate_inode_pages_rangeruncate_inode_pages_range - truncate range of pages specified by start & end byte offsets*@mapping: mapping to truncate*@lstart: offset from which to truncate*@lend: offset to which to truncate (inclusive)* Truncate the page cache, removing the pages that
invalidate_inode_pages2_rangevalidate_inode_pages2_range - remove range of pages from an address_space*@mapping: the address_space*@start: the page offset 'from' which to invalidate*@end: the page offset 'to' which to invalidate (inclusive)* Any pages which are found to be mapped
shrink_page_listshrink_page_list() returns the number of reclaimed pages
unuse_pte_range
try_to_unuseIf the boolean frontswap is true, only unuse pages_to_unuse pages;* pages_to_unuse==0 means all pages; ignored if frontswap is false
__unmap_and_move
memory_failurememory_failure - Handle memory failure of a page.*@pfn: Page Number of the corrupted page*@flags: fine tune action taken* This function is called by the low level machine check code* of an architecture when it detects hardware memory corruption* of a page
__soft_offline_page