Function report |
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 activity | Download SCCT | Chinese |
Name:test_clear_page_writeback
Proto:int test_clear_page_writeback(struct page *page)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
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) |
2758 | inc_node_page_state(page, NR_WRITTEN) |
2760 | __unlock_page_memcg(memcg) |
2761 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |