Function report | 
Source Code:mm\filemap.c | 
Create Date:2022-07-28 14:00:47 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:page_cache_delete_batch - delete several pages from page cache*@mapping: the mapping to which pages belong*@pvec: pagevec with pages to delete* The function walks over mapping->i_pages and removes pages passed in @pvec* from the mapping
Proto:static void page_cache_delete_batch(struct address_space *mapping, struct pagevec *pvec)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct address_space * | mapping | |
| struct pagevec * | pvec | 
| 298 | total_pages = 0 | 
| 299 | i = 0 | 
| 302 | mapping_set_update( & xas, mapping) | 
| 304 | If i >= pagevec_count(pvec) Then Break | 
| 308 | If xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer. Then Continue | 
| 320 | Continue | 
| 323 | WARN_ON_ONCE(!PageLocked(page)) | 
| 325 | If Our offset within mapping. == xa_index Then See page-flags.h for PAGE_MAPPING_FLAGS = NULL | 
| 334 | If Our offset within mapping. + Returns the number of pages in this potentially compound page. - 1 == xa_index Then i++ | 
| 337 | total_pages++ | 
| 339 | nrpages -= total_pages | 
| Name | Describe | 
|---|---|
| delete_from_page_cache_batch | 
| 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  |