Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_clear_page_writeback

Proto:int test_clear_page_writeback(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
2716  mapping = page_mapping(page)
2721  memcg = lock_page_memcg(page)
2722  lruvec = mem_cgroup_page_lruvec(page, page_pgdat(page))
2723  If mapping && mapping_use_writeback_tags(mapping) Then
2724  inode = host
2725  bdi = inode_to_bdi(inode)
2728  xa_lock_irqsave( & i_pages, flags)
2729  ret = TestClearPageWriteback(page)
2730  If ret Then
2733  If bdi_cap_account_writeback(bdi) Then
2741  If host && Not Returns true if any of the pages in the mapping are marked with the tag. Then lear an inode as under writeback on the sb
2745  xa_unlock_irqrestore( & i_pages, flags)
2746  Else
2747  ret = TestClearPageWriteback(page)
2755  If ret Then
2756  dec_lruvec_state(lruvec, NR_WRITEBACK)
2757  dec_zone_page_state(page, NR_ZONE_WRITE_PENDING)
2758  inc_node_page_state(page, NR_WRITTEN)
2760  __unlock_page_memcg(memcg)
2761  Return ret