函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:23 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:block_truncate_page
函数原型:int block_truncate_page(struct address_space *mapping, loff_t from, get_block_t *get_block)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果非length则返回:0 |
2908 | 如果非page_has_buffers(page)则We attach and possibly dirty the buffers atomically wrt* __set_page_dirty_buffers() via private_lock. try_to_free_buffers* is already excluded via the page lock. |
2920 | err等于0 |
2921 | 如果非buffer_mapped(bh)则 |
2922 | WARN_ON( size of mapping != blocksize) |
2927 | 如果非buffer_mapped(bh)则转到:unlock |
2938 | wait_on_buffer(bh) |
2946 | err等于0 |
2948 | unlock : |
2951 | out : |
2952 | 返回:err |
名称 | 描述 |
---|---|
nobh_truncate_page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |