函数逻辑报告 |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-29 11:07:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Test to see if we have an existing ioend structure that we could append to* first, otherwise finish off the current ioend and start another.
函数原型:static void iomap_add_to_ioend(struct inode *inode, loff_t offset, struct page *page, struct iomap_page *iop, struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct list_head *iolist)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| loff_t | offset | |
| struct page * | page | |
| struct iomap_page * | iop | |
| struct iomap_writepage_ctx * | wpc | |
| struct writeback_control * | wbc | |
| struct list_head * | iolist |
| 1367 | sector等于iomap_sector( & iomap, offset) |
| 1368 | len等于i_blocksize(inode) |
| 1372 | 如果非ioend或非iomap_can_add_to_ioend(wpc, offset, sector)则 |
| 1378 | merged等于__bio_try_merge_page( being built , page, len, poff, & same_page) |
| 1380 | 如果iop且非same_page则atomic_inc( & write_count) |
| 1383 | 如果非merged则 |
| 1388 | bio_add_page( being built , page, len, poff) |
| 1391 | size of the extent 加等于len |
| 1392 | wbc_account_cgroup_owner(wbc, page, len) |
| 名称 | 描述 |
|---|---|
| iomap_writepage_map | We implement an immediate ioend submission policy here to avoid needing to* chain multiple ioends and hence nest mempool allocations which can violate* forward progress guarantees we need to provide |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |