Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_cache_free_page

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

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
struct page *page
246  freepage = freepage
247  If freepage Then freepage(page)
250  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 && Not PageHuge(page) Then
251  page_ref_sub(page, HPAGE_PMD_NR)
252  VM_BUG_ON_PAGE(page_count(page) <= 0, page)
253  Else
254  put_page(page)
Caller
NameDescribe
delete_from_page_cachedelete_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
delete_from_page_cache_batch