函数逻辑报告 |
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 |
函数名称:nobh_truncate_page
函数原型:int nobh_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 |
2805 | index等于from右移PAGE_SHIFT determines the page size 位 |
2815 | blocksize等于i_blocksize(inode) |
2819 | 如果非length则返回:0 |
2830 | 如果page_has_buffers(page)则 |
2831 | has_buffers : |
2834 | 返回:block_truncate_page(mapping, from, get_block) |
2844 | size of mapping 等于blocksize |
2845 | buffer state bitmap (see above) 等于0 |
2850 | 如果非buffer_mapped( & map_bh)则转到:unlock |
2854 | 如果非PageUptodate(page)则 |
2869 | Dirty a page |
2870 | err等于0 |
2872 | unlock : |
2875 | out : |
2876 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |