函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:41:36
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check if a page is dirty or under writeback

函数原型:static void page_check_dirty_writeback(struct page *page, bool *dirty, bool *writeback)

返回类型:void

参数:

类型参数名称
struct page *page
bool *dirty
bool *writeback
1060  如果非page_is_file_cache - should the page be on a file LRU or anon LRU?*@page: the page to test* Returns 1 if @page is page cache page backed by a regular filesystem,* or 0 if @page is anonymous, tmpfs or otherwise ram or swap backedPageAnon(page)且非PageSwapBacked(page)则
1062  * dirty = false
1063  * writeback = false
1064  返回
1068  dirty等于PageDirty(page)
1069  writeback等于Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting.
1072  如果非页面私有占用则返回
1075  mapping等于page_mapping(page)
1076  如果mappingis_dirty_writebackis_dirty_writeback(page, dirty, writeback)
调用者
名称描述
shrink_page_listshrink_page_list() returns the number of reclaimed pages