函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:14 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lean_bdev_aliases: clean a range of buffers in block device*@bdev: Block device to clean buffers in*@block: Start of a range of blocks to clean*@len: Number of blocks to clean* We are taking a range of blocks for data and we don't want writeback of any*
函数原型:void clean_bdev_aliases(struct block_device *bdev, sector_t block, sector_t len)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct block_device * | bdev | |
| sector_t | block | |
| sector_t | len |
| 1606 | bd_mapping等于i_mapping |
| 1614 | end等于block加len减1右移PAGE_SHIFT determines the page size 减i_blkbits位 |
| 1615 | pagevec_init( & pvec) |
| 1617 | count等于pagevec_count( & pvec) |
| 1621 | 如果非page_has_buffers(page)则继续下一循环 |
| 1630 | 如果非page_has_buffers(page)则转到:unlock_page |
| 1634 | 循环 |
| 1635 | 如果非buffer_mapped(bh)或 start block number 小于block则转到:next |
| 1637 | 如果 start block number 大于等于block加len则退出 |
| 1639 | clear_buffer_dirty(bh) |
| 1640 | wait_on_buffer(bh) |
| 1641 | clear_buffer_req(bh) |
| 1642 | next : |
| 1645 | unlock_page : |
| 1648 | pagevec_release( & pvec) |
| 1649 | cond_resched() |
| 名称 | 描述 |
|---|---|
| do_direct_IO | Walk the user pages, and the file, mapping blocks to disk and generating* a sequence of (page,offset,len,block) mappings. These mappings are injected* into submit_page_section(), which takes care of the next stage of submission |
| clean_bdev_bh_alias |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |