Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:17:41
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check if a page is dirty or under writeback

Proto:static void page_check_dirty_writeback(struct page *page, bool *dirty, bool *writeback)

Type:void

Parameter:

TypeParameterName
struct page *page
bool *dirty
bool *writeback
1060  If Not 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 backed || PageAnon(page) && Not PageSwapBacked(page) Then
1062  * dirty = false
1063  * writeback = false
1064  Return
1068  dirty = PageDirty(page)
1069  writeback = Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting.
1072  If Not 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 Return
1075  mapping = page_mapping(page)
1076  If mapping && is_dirty_writeback Then is_dirty_writeback(page, dirty, writeback)
Caller
NameDescribe
shrink_page_listshrink_page_list() returns the number of reclaimed pages