Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int iomap_do_writepage(struct page *page, struct writeback_control *wbc, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct writeback_control * | wbc | |
void * | data |
1530 | trace_iomap_writepage(inode, page, 0, 0) |
1542 | If WARN_ON_ONCE((flags & (Allocating memory | I am kswapd )) == Allocating memory ) Then Go to redirty |
1550 | If WARN_ON_ONCE(flags & All allocation requests will inherit GFP_NOFS ) Then Go to redirty |
1568 | If Our offset within mapping. < end_index Then end_offset = Our offset within mapping. + 1 << PAGE_SHIFT determines the page size |
1570 | Else |
1582 | offset_into_page = offset & PAGE_SIZE - 1 |
1601 | If Our offset within mapping. > end_index || Our offset within mapping. == end_index && offset_into_page == 0 Then Go to redirty |
1616 | end_offset = offset |
1621 | redirty : |
1624 | Return 0 |
Name | Describe |
---|---|
iomap_writepage |
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 |