Function report | 
Source Code:fs\buffer.c | 
Create Date:2022-07-28 20:14:11 | 
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lock_is_partially_uptodate checks whether buffers within a page are* uptodate or not.* Returns true if all buffers which correspond to a file portion* we want to read are uptodate.
Proto:int block_is_partially_uptodate(struct page *page, unsigned long from, unsigned long count)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| unsigned long | from | |
| unsigned long | count | 
| 2217 | ret = 1 | 
| 2219 | If Not page_has_buffers(page) Then Return 0 | 
| 2223 | blocksize = size of mapping | 
| 2224 | to = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, PAGE_SIZE - from, count) | 
| 2230 | block_start = 0 | 
| 2231 | Do | 
| 2232 | block_end = block_start + blocksize | 
| 2233 | If block_end > from && block_start < to Then | 
| 2235 | ret = 0 | 
| 2236 | Break | 
| 2241 | block_start = block_end | 
| 2245 | 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  |