Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:01:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:place_page_cache_page - replace a pagecache page with a new one*@old: page to be replaced*@new: page to replace with*@gfp_mask: allocation mode* This function replaces a page in the pagecache with a new one
Proto:int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | old | |
struct page * | new | |
gfp_t | gfp_mask |
814 | ( = freepage |
819 | VM_BUG_ON_PAGE(!PageLocked(old), old) |
820 | VM_BUG_ON_PAGE(!PageLocked(new), new) |
827 | xas_lock_irqsave( & xas, flags) |
830 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
832 | If Not PageHuge(old) Then __dec_node_page_state(new, NR_FILE_PAGES) |
834 | If Not PageHuge(new) Then __inc_node_page_state(new, NR_FILE_PAGES) |
836 | If PageSwapBacked(old) Then __dec_node_page_state(new, NR_SHMEM) |
838 | If PageSwapBacked(new) Then __inc_node_page_state(new, NR_SHMEM) |
840 | xas_unlock_irqrestore( & xas, flags) |
841 | mem_cgroup_migrate(old, new) |
846 | Return 0 |
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 |