Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:01:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__add_to_page_cache_locked
Proto:static int __add_to_page_cache_locked(struct page *page, struct address_space *mapping, unsigned long offset, gfp_t gfp_mask, void **shadowp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct address_space * | mapping | |
unsigned long | offset | |
gfp_t | gfp_mask | |
void ** | shadowp |
861 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
862 | VM_BUG_ON_PAGE(PageSwapBacked(page), page) |
863 | mapping_set_update( & xas, mapping) |
865 | If Not huge Then |
876 | Do |
877 | xas_lock_irq( & xas) |
882 | If xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has. Then Go to unlock |
886 | nrexceptional-- |
890 | nrpages++ |
893 | If Not huge Then __inc_node_page_state(page, NR_FILE_PAGES) |
895 | unlock : |
896 | xas_unlock_irq( & xas) |
899 | If xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has. Then Go to error |
902 | If Not huge Then mem_cgroup_commit_charge(page, memcg, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., false) |
905 | Return 0 |
906 | error : |
907 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
909 | If Not huge Then mem_cgroup_cancel_charge(page, memcg, false) |
Name | Describe |
---|---|
add_to_page_cache_locked | add_to_page_cache_locked - add a locked page to the pagecache*@page: page to add*@mapping: the page's address_space*@offset: page index*@gfp_mask: page allocation mode* This function is used to add a page to the pagecache. It must be locked. |
add_to_page_cache_lru |
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 |