| 函数逻辑报告 | 
| Source Code: fs\buffer.c | Create Date:2022-07-29 10:45:07 | 
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Various filesystems appear to want __find_get_block to be non-blocking
函数原型:static struct buffer_head *__find_get_block_slow(struct block_device *bdev, sector_t block)
返回类型:struct buffer_head
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct block_device * | bdev | |
| sector_t | block | 
| 200 | bd_mapping等于i_mapping | 
| 201 | struct buffer_head * ret = NULL | 
| 206 | all_mapped等于1 | 
| 207 | DEFINE_RATELIMIT_STATE(last_warned, HZ, 1) | 
| 214 | 加自旋锁 | 
| 215 | 如果非page_has_buffers(page)则转到:out_unlock | 
| 219 | 循环 | 
| 220 | 如果非buffer_mapped(bh)则all_mapped等于0 | 
| 222 | 否则如果 start block number 恒等于block则 | 
| 236 | 如果all_mapped且__ratelimit( & last_warned)则 | 
| 245 | out_unlock : | 
| 246 | 自旋锁解锁 | 
| 248 | out : | 
| 249 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| __find_get_block | Perform a pagecache lookup for the matching buffer. If it's there, refresh* it in the LRU and mark it as accessed. If it is not present then return* NULL | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |