Function report | 
Source Code:fs\buffer.c | 
Create Date:2022-07-28 20:14:10 | 
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:If a page has any new buffers, zero them out here, and mark them uptodate* and dirty so they'll be written out (in order to prevent uninitialised* block data from leaking). And clear the new bit.
Proto:void page_zero_new_buffers(struct page *page, unsigned from, unsigned to)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| unsigned | from | |
| unsigned | to | 
| 1883 | BUG_ON(!PageLocked(page)) | 
| 1884 | If Not page_has_buffers(page) Then Return | 
| 1888 | block_start = 0 | 
| 1889 | Do | 
| 1890 | block_end = block_start + size of mapping | 
| 1892 | If buffer_new(bh) Then | 
| 1893 | If block_end > from && block_start < to Then | 
| 1894 | If Not PageUptodate(page) Then | 
| 1897 | start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(from, block_start) | 
| 1904 | clear_buffer_new(bh) | 
| 1909 | block_start = block_end | 
| Name | Describe | 
|---|---|
| __block_write_begin_int | |
| block_write_end | |
| nobh_write_begin | On entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure. | 
| 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  |