函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Helper function for deaccounting dirty page without writeback.* Caller must hold lock_page_memcg().

函数原型:void account_page_cleaned(struct page *page, struct address_space *mapping, struct bdi_writeback *wb)

返回类型:void

参数:

类型参数名称
struct page *page
struct address_space *mapping
struct bdi_writeback *wb
2445  如果mapping_cap_account_dirty(mapping)则
2446  dec_lruvec_page_state(page, NR_FILE_DIRTY)
2447  dec_zone_page_state(page, NR_ZONE_WRITE_PENDING)
2448  dec_wb_stat(wb, WB_RECLAIMABLE)
2449  task_io_account_cancelled_write(PAGE_SIZE)
调用者
名称描述
__cancel_dirty_pageThis cancels just the dirty bit on the kernel page itself, it does NOT* actually remove dirty bits on any mmap's that may be around
unaccount_page_cache_page