函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If truncate cannot remove the fs-private metadata from the page, the page* becomes orphaned

函数原型:static void truncate_cleanup_page(struct address_space *mapping, struct page *page)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
struct page *page
179  如果page_mapped(page)则
180  nr等于如果PageHuge() only returns true for hugetlbfs pages, but not for* normal or transparent huge pages.* PageTransHuge() returns true for both transparent huge and* hugetlbfs pages, but not normal pages. PageTransHuge() can only beHPAGE_PMD_NR否则1
181  unmap_mapping_pages(mapping, Our offset within mapping. , nr, false)
184  如果页面私有占用do_invalidatepage - invalidate part or all of a page*@page: the page which is affected*@offset: start of the range to invalidate*@length: length of the range to invalidate* do_invalidatepage() is called when all or part of the page has become
192  cancel_dirty_page(page)
193  ClearPageMappedToDisk(page)
调用者
名称描述
truncate_inode_page
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