Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Helper function for deaccounting dirty page without writeback.* Caller must hold lock_page_memcg().

Proto:void account_page_cleaned(struct page *page, struct address_space *mapping, struct bdi_writeback *wb)

Type:void

Parameter:

TypeParameterName
struct page *page
struct address_space *mapping
struct bdi_writeback *wb
2445  If mapping_cap_account_dirty(mapping) Then
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)
Caller
NameDescribe
__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