函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_clear_page_writeback

函数原型:int test_clear_page_writeback(struct page *page)

返回类型:int

参数:

类型参数名称
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  如果mappingmapping_use_writeback_tags(mapping)则
2724  inode等于host
2725  bdi等于inode_to_bdi(inode)
2728  xa_lock_irqsave( & i_pages, flags)
2729  ret等于TestClearPageWriteback(page)
2730  如果ret
2733  如果bdi_cap_account_writeback(bdi)则
2741  如果host且非Returns true if any of the pages in the mapping are marked with the tag.lear an inode as under writeback on the sb
2745  xa_unlock_irqrestore( & i_pages, flags)
2746  否则
2747  ret等于TestClearPageWriteback(page)
2755  如果ret
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  返回:ret
调用者
名称描述
end_page_writebackd_page_writeback - end writeback against a page*@page: the page