Function report |
Source Code:fs\fs-writeback.c |
Create Date:2022-07-28 20:10:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Explicit flushing or periodic writeback of "old" data
Proto:static long wb_writeback(struct bdi_writeback *wb, struct wb_writeback_work *work)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct bdi_writeback * | wb | |
struct wb_writeback_work * | work |
1847 | oldest_jif = jiffies |
1848 | older_than_this = oldest_jif |
1850 | blk_start_plug( & plug) |
1851 | spin_lock( & protects the b_* lists ) |
1852 | cycle |
1856 | If nr_pages <= 0 Then Break |
1865 | If (for_background || for_kupdate) && Not list_empty - tests whether a list is empty*@head: the list to test. Then Break |
1882 | If for_kupdate Then |
1885 | Else if for_background Then oldest_jif = jiffies |
1888 | trace_writeback_start(wb, work) |
1893 | Else progress = __writeback_inodes_wb(wb, work) |
1895 | trace_writeback_written(wb, work) |
1897 | wb_update_bandwidth(wb, wb_start) |
1907 | If progress Then Continue |
1912 | If list_empty - tests whether a list is empty*@head: the list to test. Then Break |
1919 | trace_writeback_wait(wb, work) |
1921 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1922 | spin_unlock( & protects the b_* lists ) |
1925 | spin_lock( & protects the b_* lists ) |
1927 | spin_unlock( & protects the b_* lists ) |
1928 | blk_finish_plug( & plug) |
Name | Describe |
---|---|
wb_check_background_flush | |
wb_check_old_data_flush | |
wb_check_start_all | |
wb_do_writeback | Retrieve work items and do the writeback they describe |
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 |