函数逻辑报告 |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-29 11:07:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int iomap_writepage_map(struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct inode *inode, struct page *page, u64 end_offset)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct iomap_writepage_ctx * | wpc | |
struct writeback_control * | wbc | |
struct inode * | inode | |
struct page * | page | |
u64 | end_offset |
1416 | iop等于to_iomap_page(page) |
1418 | len等于i_blocksize(inode) |
1421 | LIST_HEAD(submit_list) |
1423 | WARN_ON_ONCE(i_blocksize(inode) < PAGE_SIZE && !iop) |
1424 | WARN_ON_ONCE(iop && atomic_read( & write_count) != 0) |
1431 | 以i小于PAGE_SIZE右移i_blkbits位且file_offset小于end_offset循环 |
1434 | 如果iop且非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则继续下一循环 |
1437 | error等于map_blocks(wpc, inode, file_offset) |
1440 | 如果WARN_ON_ONCE( type of mapping == data inline in the inode )则继续下一循环 |
1442 | 如果 type of mapping 恒等于 blocks allocated, need allocation 则继续下一循环 |
1446 | count自加 |
1449 | WARN_ON_ONCE(!ioend && !链表为空) |
1450 | WARN_ON_ONCE(!PageLocked(page)) |
1451 | WARN_ON_ONCE(Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting.) |
1459 | 如果此条件成立可能性小(为编译器优化)(error)则 |
1460 | 如果非count则 |
1482 | 否则 |
1484 | set_page_writeback(page) |
1497 | 删除链表项并重新初始化 |
1509 | done : |
1511 | 返回:error |
名称 | 描述 |
---|---|
iomap_do_writepage | Write out a dirty page.* For delalloc space on the page we need to allocate space and flush it.* For unwritten space on the page we need to start the conversion to* regular allocated space. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |