Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto: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)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not ioend || Not iomap_can_add_to_ioend(wpc, offset, sector) Then |
1378 | merged = __bio_try_merge_page( being built , page, len, poff, & same_page) |
1380 | If iop && Not same_page Then atomic_inc( & write_count) |
1383 | If Not merged Then |
1388 | bio_add_page( being built , page, len, poff) |
1391 | size of the extent += len |
1392 | wbc_account_cgroup_owner(wbc, page, len) |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |