Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This 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

Proto:void __cancel_dirty_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
2618  mapping = page_mapping(page)
2620  If mapping_cap_account_dirty(mapping) Then
2621  inode = host
2623  struct wb_lock_cookie cookie = {}
2625  lock_page_memcg(page)
2626  wb = unlocked_inode_to_wb_begin(inode, & cookie)
2628  If TestClearPageDirty(page) Then Helper function for deaccounting dirty page without writeback.* Caller must hold lock_page_memcg().
2631  unlocked_inode_to_wb_end(inode, & cookie)
2632  unlock_page_memcg(page)
2633  Else
2634  ClearPageDirty(page)
Caller
NameDescribe
cancel_dirty_page