函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_cache_free_page

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

返回类型:void

参数:

类型参数名称
struct address_space *mapping
struct page *page
246  freepage等于freepage
247  如果freepagefreepage(page)
250  如果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且非PageHuge(page)则
251  page_ref_sub(page, HPAGE_PMD_NR)
252  VM_BUG_ON_PAGE(page_count(page) <= 0, page)
253  否则
254  put_page(page)
调用者
名称描述
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