函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:truncate_inode_page

函数原型:int truncate_inode_page(struct address_space *mapping, struct page *page)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct page *page
222  VM_BUG_ON_PAGE(PageTail(page), page)
224  如果 See page-flags.h for PAGE_MAPPING_FLAGS 不等于mapping则返回:负EIO
227  If truncate cannot remove the fs-private metadata from the page, the page* becomes orphaned
228  delete_from_page_cache - delete page from page cache*@page: the page which the kernel is trying to remove from page cache* This must be called only on pages that have been verified to be in the page* cache and locked
229  返回:0
调用者
名称描述
generic_error_remove_pageUsed to get rid of pages on hardware memory corruption.
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