Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:00:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:unaccount_page_cache_page
Proto:static void unaccount_page_cache_page(struct address_space *mapping, struct page *page)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct address_space * | mapping | |
| struct page * | page |
| 166 | If PageUptodate(page) && PageMappedToDisk(page) Then cleancache_put_page(page) |
| 168 | Else cleancache_invalidate_page(mapping, page) |
| 171 | VM_BUG_ON_PAGE(PageTail(page), page) |
| 172 | VM_BUG_ON_PAGE(page_mapped(page), page) |
| 176 | pr_alert("BUG: Bad page cache in process %s pfn:%05lx\n", comm, page_to_pfn(page)) |
| 179 | dump_stack() |
| 182 | mapcount = page_mapcount(page) |
| 183 | If mapping_exiting(mapping) && page_count(page) >= mapcount + 2 Then |
| 200 | nr = hpage_nr_pages(page) |
| 202 | __mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, - nr) |
| 203 | If PageSwapBacked(page) Then |
| 204 | __mod_node_page_state(page_pgdat(page), NR_SHMEM, - nr) |
| 222 | If WARN_ON_ONCE(PageDirty(page)) Then account_page_cleaned(page, mapping, inode_to_wb(host)) |
| Name | Describe |
|---|---|
| __delete_from_page_cache | Delete a page from the page cache and free it. Caller has to make* sure the page is locked and that nobody else uses it - or that usage* is safe. The caller must hold the i_pages lock. |
| 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 |