Function report |
Source Code:fs\mpage.c |
Create Date:2022-07-28 20:15:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mpage_writepages - walk the list of dirty pages of the given address space & writepage() all of them*@mapping: address space structure to write*@wbc: subtract the number of written pages from *@wbc->nr_to_write
Proto:int mpage_writepages(struct address_space *mapping, struct writeback_control *wbc, get_block_t get_block)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct address_space * | mapping | |
| struct writeback_control * | wbc | |
| get_block_t | get_block |
| 718 | blk_start_plug( & plug) |
| 720 | If Not get_block Then ret = generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them |
| 722 | Else |
| 723 | struct mpage_data mpd = {bio = NULL, last_block_in_bio = 0, get_block = get_block, use_writepage = 1, } |
| 730 | ret = write_cache_pages - walk the list of dirty pages of the given address space and write all of them |
| 731 | If bio Then |
| 732 | op_flags = If sync_mode == Wait on every mapping Then REQ_SYNC Else 0 |
| 734 | mpage_bio_submit(REQ_OP_WRITE, op_flags, bio) |
| 737 | blk_finish_plug( & plug) |
| 738 | 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 |