Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:00:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Lock ordering:* ->i_mmap_rwsem (truncate_pagecache)* ->private_lock (__free_pte->__set_page_dirty_buffers)* ->swap_lock (exclusive_swap_page, others)* ->i_pages lock* ->i_mutex* ->i_mmap_rwsem (truncate->unmap_mapping_range)* ->mmap_sem* ->i_mmap_rwsem
Proto:static void page_cache_delete(struct address_space *mapping, struct page *page, void *shadow)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct address_space * | mapping | |
struct page * | page | |
void * | shadow |
123 | nr = 1 |
125 | mapping_set_update( & xas, mapping) |
133 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
134 | VM_BUG_ON_PAGE(PageTail(page), page) |
135 | VM_BUG_ON_PAGE(nr != 1 && shadow, page) |
140 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
143 | If shadow Then |
144 | nrexceptional += nr |
151 | smp_wmb() |
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. |
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 |