函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\truncate.c Create Date:2022-07-27 15:38:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int invalidate_inode_page(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
257  mapping等于page_mapping(page)
258  如果非mapping则返回:0
260  如果PageDirty(page)或Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting.则返回:0
262  如果page_mapped(page)则返回:0
264  返回: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.
调用者
名称描述
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