函数逻辑报告 |
Source Code:fs\iomap\apply.c |
Create Date:2022-07-29 11:06:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Execute a iomap write on a segment of the mapping that spans a* contiguous range of pages that have identical block mapping state
函数原型:loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length, unsigned flags, const struct iomap_ops *ops, void *data, iomap_actor_t actor)
返回类型:loff_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| loff_t | pos | |
| loff_t | length | |
| unsigned | flags | |
| const struct iomap_ops * | ops | |
| void * | data | |
| iomap_actor_t | actor |
| 27 | struct iomap iomap = { type of mapping = blocks allocated, need allocation } |
| 28 | struct iomap srcmap = { type of mapping = blocks allocated, need allocation } |
| 29 | written等于0 |
| 49 | 如果WARN_ON( file offset of mapping, bytes > pos)则返回:负EIO |
| 51 | 如果WARN_ON( length of mapping, bytes == 0)则返回:负EIO |
| 54 | trace_iomap_apply_dstmap(inode, & iomap) |
| 55 | 如果 type of mapping 不等于 blocks allocated, need allocation 则trace_iomap_apply_srcmap(inode, & srcmap) |
| 63 | 如果 type of mapping 不等于 blocks allocated, need allocation 则end等于两数取小(end, file offset of mapping, bytes + length of mapping, bytes ) |
| 80 | written等于actor(inode, pos, length, data, & iomap, type of mapping != blocks allocated, need allocation ? & srcmap : & iomap) |
| 87 | 如果iomap_end则 |
| 名称 | 描述 |
|---|---|
| iomap_readpage | |
| iomap_readpages | |
| iomap_file_buffered_write | |
| iomap_file_unshare | |
| iomap_zero_range | |
| iomap_page_mkwrite | |
| iomap_dio_rw | map_dio_rw() always completes O_[D]SYNC writes regardless of whether the IO* is being issued as AIO or not. This allows us to optimise pure data writes* to use REQ_FUA rather than requiring generic_write_sync() to issue a* REQ_FLUSH post write |
| iomap_fiemap | |
| iomap_bmap | legacy ->bmap interface. 0 is the error return (!) |
| iomap_seek_hole | |
| iomap_seek_data | |
| iomap_swapfile_activate | Iterate a swap file's iomaps to construct physical extents that can be* passed to the swapfile subsystem. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |