Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Call this whenever redirtying a page, to de-account the dirty counters* (NR_DIRTIED, WB_DIRTIED, tsk->nr_dirtied), so that they match the written* counters (NR_WRITTEN, WB_WRITTEN) in long term

Proto:void account_page_redirty(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
2506  mapping = See page-flags.h for PAGE_MAPPING_FLAGS
2508  If mapping && mapping_cap_account_dirty(mapping) Then
2509  inode = host
2511  struct wb_lock_cookie cookie = {}
2513  wb = unlocked_inode_to_wb_begin(inode, & cookie)
2514  nr_dirtied--
2515  dec_node_page_state(page, NR_DIRTIED)
2516  dec_wb_stat(wb, WB_DIRTIED)
2517  unlocked_inode_to_wb_end(inode, & cookie)
Caller
NameDescribe
redirty_page_for_writepageWhen a writepage implementation decides that it doesn't want to write this* page for some reason, it should redirty the locked page via* redirty_page_for_writepage() and it should then unlock the page and return 0