函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Optimized variant when page is already known not to be PageAnon

函数原型:static inline int mm_counter_file(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
1657  如果PageSwapBacked(page)则返回:MM_SHMEMPAGES
1659  返回:MM_FILEPAGES
调用者
名称描述
__replace_page__replace_page - replace page in vma by new page
insert_pageThis is the old fallback for page remapping.* For historical reasons, it only allows reserved pages. Only* old drivers should use this, and they needed to mark their* pages reserved for the old functions anyway.
wp_page_copyHandle the case of a page which we actually need to copy to a new page.* Called with mmap_sem locked and the old page referenced, but* without the ptl held.* High level logic flow:* - Allocate a page, copy the content of the old page to the new one.
alloc_set_ptealloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
try_to_unmap_one@arg: enum ttu_flags will be passed to this argument
zap_huge_pmd
__split_huge_pmd_locked
mm_counter