函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:52
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void account_page_redirty(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
2506  mapping等于 See page-flags.h for PAGE_MAPPING_FLAGS
2508  如果mappingmapping_cap_account_dirty(mapping)则
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)
调用者
名称描述
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