Function report |
Source Code:fs\direct-io.c |
Create Date:2022-07-28 20:15:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Attempt to put the current chunk of 'cur_page' into the current BIO. If* that was successful then update final_block_in_bio and take a ref against* the just-added page.* Return zero on success. Non-zero means the caller needs to start a new BIO.
Proto:static inline int dio_bio_add_page(struct dio_submit *sdio)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dio_submit * | sdio |
734 | ret = bio_add_page( under assembly , The page , Nr of bytes at cur_page_offset , Offset into it, in bytes ) |
736 | If ret == Nr of bytes at cur_page_offset Then |
740 | If Nr of bytes at cur_page_offset + Offset into it, in bytes == PAGE_SIZE Then approximate total IO pages -- |
743 | current final block in bio + 1 = Where it starts + (Nr of bytes at cur_page_offset >> doesn't change ) |
745 | ret = 0 |
746 | Else |
747 | ret = 1 |
749 | Return ret |
Name | Describe |
---|---|
dio_send_cur_page | Put cur_page under IO |
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 |