Function report | 
Source Code:fs\buffer.c | 
Create Date:2022-07-28 20:14:12 | 
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:nobh_truncate_page
Proto:int nobh_truncate_page(struct address_space *mapping, loff_t from, get_block_t *get_block)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct address_space * | mapping | |
| loff_t | from | |
| get_block_t * | get_block | 
| 2805 | index = from >> PAGE_SHIFT determines the page size | 
| 2815 | blocksize = i_blocksize(inode) | 
| 2819 | If Not length Then Return 0 | 
| 2823 | iblock = index << PAGE_SHIFT determines the page size - i_blkbits | 
| 2830 | If page_has_buffers(page) Then | 
| 2831 | has_buffers : | 
| 2834 | Return block_truncate_page(mapping, from, get_block) | 
| 2844 | size of mapping = blocksize | 
| 2845 | buffer state bitmap (see above) = 0 | 
| 2850 | If Not buffer_mapped( & map_bh) Then Go to unlock | 
| 2854 | If Not PageUptodate(page) Then | 
| 2856 | If err Then | 
| 2858 | Go to out | 
| 2861 | If Not PageUptodate(page) Then | 
| 2865 | If page_has_buffers(page) Then Go to has_buffers | 
| 2869 | Dirty a page | 
| 2870 | err = 0 | 
| 2872 | unlock : | 
| 2875 | out : | 
| 2876 | Return err | 
| 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  |