Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:14:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_cgroup_migrate - charge a page's replacement*@oldpage: currently circulating page*@newpage: replacement page* Charge @newpage as a replacement page for @oldpage. @oldpage will* be uncharged upon free.
Proto:void mem_cgroup_migrate(struct page *oldpage, struct page *newpage)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | oldpage | |
struct page * | newpage |
6641 | VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage) |
6642 | VM_BUG_ON_PAGE(!PageLocked(newpage), newpage) |
6647 | If mem_cgroup_disabled() Then Return |
6651 | If mem_cgroup Then Return |
6655 | memcg = mem_cgroup |
6656 | If Not memcg Then Return |
6661 | nr_pages = If compound Then hpage_nr_pages(newpage) Else 1 |
6668 | commit_charge(newpage, memcg, false) |
6670 | local_irq_save(flags) |
6673 | local_irq_restore(flags) |
Name | Describe |
---|---|
migrate_page_states | Copy the page to its new location |
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 |