Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:If truncate cannot remove the fs-private metadata from the page, the page* becomes orphaned

Proto:static void truncate_cleanup_page(struct address_space *mapping, struct page *page)

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
struct page *page
179  If page_mapped(page) Then
180  nr = If 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 be Then HPAGE_PMD_NR Else 1
181  unmap_mapping_pages(mapping, Our offset within mapping. , nr, false)
184  If page_has_private - Determine if page has private stuff*@page: The page to be checked* Determine if a page has private stuff, indicating that release routines* should be invoked upon it. Then 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)
Caller
NameDescribe
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