Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:06 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns if the page has dirty or writeback buffers. If all the buffers* are unlocked and clean then the PageDirty information is stale. If* any of the pages are locked, it is assumed they are locked for IO.
Proto:void buffer_check_dirty_writeback(struct page *page, bool *dirty, bool *writeback)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
bool * | dirty | |
bool * | writeback |
90 | * dirty = false |
91 | * writeback = false |
93 | BUG_ON(!PageLocked(page)) |
95 | If Not page_has_buffers(page) Then Return |
98 | If Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then * writeback = true |
103 | Do |
104 | If buffer_locked(bh) Then * writeback = true |
107 | If buffer_dirty(bh) Then * dirty = true |
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 |