Function report |
Source Code:mm\readahead.c |
Create Date:2022-07-28 14:11:55 |
| Last Modify:2020-03-17 21:13:07 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:read_pages
Proto:static int read_pages(struct address_space *mapping, struct file *filp, struct list_head *pages, unsigned int nr_pages, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct address_space * | mapping | |
| struct file * | filp | |
| struct list_head * | pages | |
| unsigned int | nr_pages | |
| gfp_t | gfp |
| 123 | blk_start_plug( & plug) |
| 125 | If readpages Then |
| 133 | page = lru_to_page(pages) |
| 135 | If Not add_to_page_cache_lru(page, mapping, Our offset within mapping. , gfp) Then readpage(filp, page) |
| 139 | ret = 0 |
| 141 | out : |
| 142 | blk_finish_plug( & plug) |
| 144 | Return ret |
| Name | Describe |
|---|---|
| __do_page_cache_readahead | __do_page_cache_readahead() actually reads a chunk of disk. It allocates* the pages first, then submits them for I/O. This avoids the very bad* behaviour which would occur if page allocations are causing VM writeback. |
| 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 |