Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\truncate.c Create Date:2022-07-28 14:14:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Safely invalidate one page from its pagecache mapping.* It only drops clean, unused pages. The page must be locked.* Returns 1 if the page is successfully invalidated, otherwise 0.

Proto:int invalidate_inode_page(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
257  mapping = page_mapping(page)
258  If Not mapping Then Return 0
260  If PageDirty(page) || Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then Return 0
262  If page_mapped(page) Then Return 0
264  Return This is for invalidate_mapping_pages(). That function can be called at* any time, and is not supposed to throw away dirty pages. But pages can* be marked dirty at any time too, so use remove_mapping which safely* discards clean, unused pages.
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
truncate_error_page
__soft_offline_page