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:block_truncate_page
Proto:int block_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 |
2883 | index = from >> PAGE_SHIFT determines the page size |
2893 | blocksize = i_blocksize(inode) |
2897 | If Not length Then Return 0 |
2901 | iblock = index << PAGE_SHIFT determines the page size - i_blkbits |
2920 | err = 0 |
2921 | If Not buffer_mapped(bh) Then |
2922 | WARN_ON( size of mapping != blocksize) |
2927 | If Not buffer_mapped(bh) Then Go to unlock |
2938 | wait_on_buffer(bh) |
2946 | err = 0 |
2948 | unlock : |
2951 | out : |
2952 | Return err |
Name | Describe |
---|---|
nobh_truncate_page |
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 |